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

Jacek Kowalski
2015-09-05 44b838e3f40277a4e55a9c8804365ab973e11d4b
Fix incorrect serviceUrl passed to CAS when GET method was used
1 files modified
9 ■■■■■ changed files
uphpCAS.php 9 ●●●●● patch | view | raw | blame | history
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;
    }