Skip to content
Permalink
Browse files

added workaround for bad REQUEST_URIs; updates #703

  • Loading branch information...
following5 committed May 24, 2015
1 parent 89d4645 commit 94a360332892153ac416ba0d70c088c550dbc605
Showing with 4 additions and 0 deletions.
  1. +4 −0 htdocs/lib2/OcSmarty.class.php
@@ -232,6 +232,10 @@ function display($dummy1=null, $dummy2=null, $dummy3=null)
// build address for switching locales
$locale_pageadr = $_SERVER['REQUEST_URI'];
// workaround for http://redmine.opencaching.de/issues/703
$strange_things_pos = strpos($locale_pageadr,".php/");
if ($strange_things_pos)
$locale_pageadr = substr($locale_pageadr,0,$strange_things_pos + 4);
$lpos = strpos($locale_pageadr,"locale=");
if ($lpos)
$locale_pageadr = substr($locale_pageadr,0,$lpos);

0 comments on commit 94a3603

Please sign in to comment.
You can’t perform that action at this time.