Skip to content

Commit

Permalink
[BUGFIX] Make sure the incoming path is not forced as lowercase
Browse files Browse the repository at this point in the history
The hash is still being lowercased for url lookup

Resolves: #49
Based on: #60
  • Loading branch information
bmoex committed Aug 3, 2018
1 parent ecf46be commit 0468930
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Classes/Hook/RedirectActionHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class RedirectActionHook
public function redirectAction()
{
$path = GeneralUtility::getIndpEnv('TYPO3_SITE_SCRIPT');
$path = mb_strtolower($path, 'utf-8');
$path = mb_convert_encoding($path, 'utf-8');

if (!empty($path)) {
try {
Expand Down Expand Up @@ -52,10 +52,7 @@ public function redirectAction()
}
}
}
$redirect = $this->getRedirectService()->findRedirect(
$path,
$domain
);
$redirect = $this->getRedirectService()->findRedirect($path, $domain);

if ($hookObjects) {
// Hook: afterQueryByPathAndDomain
Expand Down

0 comments on commit 0468930

Please sign in to comment.