Skip to content

Commit

Permalink
Merge pull request #189 from jcdirks/patch-1
Browse files Browse the repository at this point in the history
[BUGFIX] fix encoding of spaces in file path
  • Loading branch information
christianbltr authored Oct 20, 2023
2 parents 461fd7f + 082d150 commit 7108199
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 7108199

Please sign in to comment.