Skip to content

Commit

Permalink
fix encoding of spaces in file path
Browse files Browse the repository at this point in the history
  • Loading branch information
jcdirks authored Oct 11, 2023
1 parent 3fcfb41 commit 082d150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Lib/SearchHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public static function getResultLinkConfiguration(array $resultRow, $targetDefau
} else {
if (file_exists($resultRow['directory'] . $resultRow['title'])) {
$linkConf['parameter'] =
PathUtility::stripPathSitePrefix($resultRow['directory'])
PathUtility::stripPathSitePrefix(implode('/', array_map('rawurlencode', explode('/', $resultRow['directory']))))
. rawurlencode($resultRow['title']);
}
}
Expand Down

0 comments on commit 082d150

Please sign in to comment.