mirror of https://github.com/jacekkow/uphpCAS

Jacek Kowalski
2015-09-05 44b838e3f40277a4e55a9c8804365ab973e11d4b
uphpCAS.php
@@ -56,8 +56,17 @@
      if($port != 0) {
         $url .= ':'.$port;
      }
      $url .= $_SERVER['REQUEST_URI'];
      
      if(isset($_GET['ticket'])) {
         $pos = max(
            strrpos($url, '?ticket='),
            strrpos($url, '&ticket=')
         );
         $url = substr($url, 0, $pos);
      }
      return $url;
   }