Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FIX Include query parameters when redirecting to files from index.php…

… (fixes #7823)
  • Loading branch information...
commit 0761de7a2f3b8810379c9aadff7e113afb0921a6 1 parent 3a531dd
@simonwelsh simonwelsh authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  index.php
View
3  index.php
@@ -55,6 +55,9 @@
*/
if($url && file_exists($fileName)) {
$fileURL = (dirname($_SERVER['SCRIPT_NAME'])=='/'?'':dirname($_SERVER['SCRIPT_NAME'])) . '/' . $url;
+ if(isset($_SERVER['QUERY_STRING'])) {
+ $fileURL .= '?' . $_SERVER['QUERY_STRING'];
+ }
header($_SERVER['SERVER_PROTOCOL'] . ' 301 Moved Permanently');
header("Location: $fileURL");
die();
Please sign in to comment.
Something went wrong with that request. Please try again.