[BUGFIX] Include RSA JS in FE with relative URL 26/53226/2
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 20:57:10 +0000 (22:57 +0200)
Releases: master, 8.7
Resolves: #80952
Change-Id: I94a5124a16c9ad9893c1c2346967089fd16ad142
Reviewed-on: https://review.typo3.org/53226
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/rsaauth/Classes/RsaEncryptionEncoder.php

index 434e52e..7aa44dc 100644 (file)
@@ -53,7 +53,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']) {