Commit 8cf257df authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #5149 Using PHP_SELF if PATH_INFO is empty or not set

Showing with 5 additions and 1 deletion
+5 -1
...@@ -194,7 +194,11 @@ class standAlonePage { ...@@ -194,7 +194,11 @@ class standAlonePage {
if ($port != '80') { if ($port != '80') {
$pageURL .= ':'.$port; $pageURL .= ':'.$port;
} }
$pageURL .= $_SERVER['PATH_INFO']; if (empty($_SERVER['PATH_INFO'])) {
$pageURL .= $_SERVER['PHP_SELF'];
} else {
$pageURL .= $_SERVER['PATH_INFO'];
}
return $pageURL; return $pageURL;
} }
......
  • bmortier @bmortier

    mentioned in issue #1632

    By Côme Chilliet on 2017-09-02T15:33:16 (imported from GitLab)

    ·

    mentioned in issue #1632

    By Côme Chilliet on 2017-09-02T15:33:16 (imported from GitLab)

    Toggle commit list
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