<dt><label for="domainName">{lang}wcf.acp.application.management.domainName{/lang}</label></dt>
<dd>
<div class="inputAddon">
- <span class="inputPrefix">http(s)://</span>
+ <span class="inputPrefix">https://</span>
<input type="text" name="domainName" id="domainName" value="{$domainName}" class="long">
</div>
{if $errorField == 'domainName'}
</dl>
</section>
- <script>
- (() => {
- const domainName = document.getElementById("domainName");
- const cookieDomain = document.getElementById("cookieDomain");
+ {* Keep the cookie domain in sync if it was previously identical. *}
+ {if $domainName === $cookieDomain}
+ <script>
+ (() => {
+ const domainName = document.getElementById("domainName");
+ const cookieDomain = document.getElementById("cookieDomain");
- // Keep the cookie domain in sync if it was previously identical.
- if (domainName.value === cookieDomain.value) {
domainName.addEventListener("input", () => {
cookieDomain.value = domainName.value;
});
- }
- })();
- </script>
+ })();
+ </script>
+ {/if}
{/if}
<section class="section">
'acp/update_com.woltlab.wcf_5.3_packageServer.php',
'acp/update_com.woltlab.wcf_5.3_preUpdate.php',
'lib/acp/form/UserGroupPromoteOwnerForm.class.php',
+ 'lib/acp/page/ApplicationManagementPage.class.php',
'lib/system/database/table/DatabaseTableUtil.class.php',
];
namespace wcf\acp\form;
-use Stripe\Exception\PermissionException;
use wcf\data\application\ViewableApplicationList;
use wcf\data\page\Page;
use wcf\data\page\PageList;
use wcf\system\application\ApplicationHandler;
use wcf\system\cache\builder\ApplicationCacheBuilder;
use wcf\system\cache\builder\RoutingCacheBuilder;
+use wcf\system\exception\PermissionDeniedException;
use wcf\system\exception\UserInputException;
use wcf\system\Regex;
use wcf\system\WCF;
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Acp\Form
*/
-class ApplicationManagementForm extends AbstractForm
+final class ApplicationManagementForm extends AbstractForm
{
/**
* @inheritDoc
if (ApplicationHandler::getInstance()->isMultiDomainSetup()) {
// Changes to the domain for all apps are only possible for setups using the same domain.
if (!empty($this->cookieDomain) || !empty($this->domainName)) {
- throw new PermissionException();
+ throw new PermissionDeniedException();
}
}
(new Page($this->landingPageID[1]))->setAsLandingPage();
} else {
$sql = "UPDATE wcf" . WCF_N . "_page
- SET isLandingPage = ?
- WHERE isLandingPage = ?";
+ SET isLandingPage = ?
+ WHERE isLandingPage = ?";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute([
0,