Commit 735693ab authored by Henri Nathanson's avatar Henri Nathanson Committed by Benni Mack
Browse files

[BUGFIX] Fix local path discovery for external files in indexed_search

This fixes encoding issues in paths with URL-encoded spaces and other
characters when indexed_search translates indexable file URLs into local
paths.

Resolves: #91586
Releases: master, 10.4, 9.5
Change-Id: Id20034137556f5705ee34b3adcca6250c77d83f2
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64792


Tested-by: Jonas Eberle's avatarJonas Eberle <flightvision@googlemail.com>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Jonas Eberle's avatarJonas Eberle <flightvision@googlemail.com>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent fcd58d3c
......@@ -627,7 +627,7 @@ class Indexer
$hyperLinksData[] = [
'tag' => $tagData,
'href' => $tagAttributes[0]['href'],
'localPath' => $this->createLocalPath($tagAttributes[0]['href'])
'localPath' => $this->createLocalPath(urldecode($tagAttributes[0]['href']))
];
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment