[BUGFIX] Include RSA JS in FE with relative URL 12/52112/4
authorMarkus Klein <markus.klein@typo3.org>
Tue, 21 Mar 2017 18:41:50 +0000 (19:41 +0100)
committerBenni Mack <benni@typo3.org>
Thu, 15 Jun 2017 19:38:46 +0000 (21:38 +0200)
Releases: master, 8.7
Resolves: #80952
Change-Id: I94a5124a16c9ad9893c1c2346967089fd16ad142
Reviewed-on: https://review.typo3.org/52112
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mario T <typoser@trashmail.de>
Tested-by: Mario T <typoser@trashmail.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/rsaauth/Classes/RsaEncryptionEncoder.php

index 2b259fc..e1e28bd 100644 (file)
@@ -61,7 +61,7 @@ class RsaEncryptionEncoder implements SingletonInterface
             $pageRenderer->loadRequireJsModule('TYPO3/CMS/Rsaauth/RsaEncryptionModule');
         } else {
             // Register ajax handler url
-            $code = 'var TYPO3RsaEncryptionPublicKeyUrl = ' . GeneralUtility::quoteJSvalue(GeneralUtility::getIndpEnv('TYPO3_SITE_URL') . 'index.php?eID=RsaPublicKeyGenerationController') . ';';
+            $code = 'var TYPO3RsaEncryptionPublicKeyUrl = ' . GeneralUtility::quoteJSvalue(GeneralUtility::getIndpEnv('TYPO3_SITE_PATH') . 'index.php?eID=RsaPublicKeyGenerationController') . ';';
             $pageRenderer->addJsInlineCode('TYPO3RsaEncryptionPublicKeyUrl', $code);
             $javascriptPath = ExtensionManagementUtility::siteRelPath('rsaauth') . 'Resources/Public/JavaScript/';
             if (!$GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['debug']) {