Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

… (fixes #7823)
  • Loading branch information...
commit 0761de7a2f3b8810379c9aadff7e113afb0921a6 1 parent 3a531dd
Simon Welsh authored August 30, 2012

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  index.php
3  index.php
@@ -55,6 +55,9 @@
55 55
  */
56 56
 if($url && file_exists($fileName)) {
57 57
 	$fileURL = (dirname($_SERVER['SCRIPT_NAME'])=='/'?'':dirname($_SERVER['SCRIPT_NAME'])) . '/' . $url;
  58
+	if(isset($_SERVER['QUERY_STRING'])) {
  59
+		$fileURL .= '?' . $_SERVER['QUERY_STRING'];
  60
+	}
58 61
 	header($_SERVER['SERVER_PROTOCOL'] . ' 301 Moved Permanently');
59 62
 	header("Location: $fileURL");
60 63
 	die();

0 notes on commit 0761de7

Please sign in to comment.
Something went wrong with that request. Please try again.