[BUGFIX] Backslash missing in user image preview link path 78/58678/2
authorStanislas Rolland <typo3@sjbr.ca>
Tue, 23 Oct 2018 19:59:51 +0000 (15:59 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Tue, 23 Oct 2018 20:01:51 +0000 (22:01 +0200)
absRefPrefix should be prepended.

Resolves: #84694
Change-Id: I88f57cdc04aa2370687c5416007475dad4ea2b63
Reviewed-on: https://review.typo3.org/58678
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
ChangeLog
Classes/Hooks/FileUploadHooks.php

index cdf2a92..d472775 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2018-10-23 Stanislas Rolland  <typo3(arobas)sjbr.ca>
        * Resolves #85925: PHP codeinspection returns errors
+       * Resolves #84694: Backslash missing in user image preview link path
 
 2018-04-04 Stanislas Rolland  <typo3(arobas)sjbr.ca>
        * Resolves #84605: PHP Warning: count() in SJBR\SrFeuserRegister\Request\Parameters
index 94d5eb9..050599e 100644 (file)
@@ -681,7 +681,7 @@ class FileUploadHooks
                                                $HTMLContent .= CR . LF;
                                        }
                                } else if ($bHtml) {
-                                       $HTMLContent .= '<a href="' . $dir . '/' . $fileName . '"'
+                                       $HTMLContent .= '<a href="' . ($GLOBALS['TSFE']->config['config']['absRefPrefix'] ?: '') . $dir . '/' . $fileName . '"'
                                        . CssUtility::classParam($prefixId, 'file-view')
                                        . ' target="_blank" title="' . LocalizationUtility::translate('file_view', $extensionName) . '">' . LocalizationUtility::translate('file_view', $extensionName) . '</a><br />';
                                }