const apps = new Map(Object.entries({
{* this bypasses the route system to force rewritten urls *}
- {implode from=$rewriteTestApplications item=$rewriteTestApplication}'{$rewriteTestApplication->getPackage()|encodeJS}': '{$__wcf->getPath($rewriteTestApplication->getAbbreviation())}core-rewrite-test/?uuidHash={$uuidHash}'{/implode}
+ {implode from=$rewriteTestApplications item=$rewriteTestApplication}'{$rewriteTestApplication->getPackage()|encodeJS}': '{$__wcf->getPath($rewriteTestApplication->getAbbreviation())}core-rewrite-test/'{/implode}
}));
AcpUiOptionRewriteTest.init(apps);
{
parent::assignVariables();
- if ($this->category->categoryName === "general") {
- WCF::getTPL()->assign([
- 'uuidHash' => \hash('sha256', \WCF_UUID),
- ]);
- }
-
WCF::getTPL()->assign([
'category' => $this->category,
'optionTree' => $this->optionTree,
namespace wcf\action;
use Laminas\Diactoros\Response\JsonResponse;
-use wcf\system\exception\IllegalLinkException;
/**
* Internal action used to run a test for url rewriting.
{
const AVAILABLE_DURING_OFFLINE_MODE = true;
- /**
- * @inheritDoc
- *
- * @throws IllegalLinkException
- */
- public function readParameters()
- {
- parent::readParameters();
-
- if (!isset($_GET['uuidHash']) || !\hash_equals(\hash('sha256', WCF_UUID), $_GET['uuidHash'])) {
- throw new IllegalLinkException();
- }
- }
-
/**
* @inheritDoc
*/