Browse Source

Add URL decoding to query string in App\Arguments

- Slashes were stored url encoded
tags/2019.12
Hypolite Petovan 10 months ago
parent
commit
dca1b8b580
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/App/Arguments.php

+ 2
- 2
src/App/Arguments.php View File

@@ -105,9 +105,9 @@ class Arguments
$queryString = '';

if (!empty($server['QUERY_STRING']) && strpos($server['QUERY_STRING'], 'pagename=') === 0) {
$queryString = substr($server['QUERY_STRING'], 9);
$queryString = urldecode(substr($server['QUERY_STRING'], 9));
} elseif (!empty($server['QUERY_STRING']) && strpos($server['QUERY_STRING'], 'q=') === 0) {
$queryString = substr($server['QUERY_STRING'], 2);
$queryString = urldecode(substr($server['QUERY_STRING'], 2));
}

// eventually strip ZRL


Loading…
Cancel
Save