From 2092d32d71d7e65111c7ae08ba95b4145631a10e Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <jkowalsk@student.agh.edu.pl>
Date: Mon, 17 Aug 2015 14:31:50 +0000
Subject: [PATCH] Ask CAS to use POST method when passing ticket

---
 uphpCAS.php |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/uphpCAS.php b/uphpCAS.php
index bce5aab..46dc3e2 100644
--- a/uphpCAS.php
+++ b/uphpCAS.php
@@ -53,7 +53,7 @@
 	}
 	
 	public function loginUrl() {
-		return $this->serverUrl.'/login?service='.urlencode($this->serviceUrl);
+		return $this->serverUrl.'/login?method=POST&service='.urlencode($this->serviceUrl);
 	}
 	
 	public function logoutUrl() {
@@ -73,8 +73,8 @@
 		session_start();
 		if(isset($_SESSION['uphpCAS-user'])) {
 			return $_SESSION['uphpCAS-user'];
-		} elseif(isset($_GET['ticket'])) {
-			$user = $this->verifyTicket($_GET['ticket']);
+		} elseif(isset($_REQUEST['ticket'])) {
+			$user = $this->verifyTicket($_REQUEST['ticket']);
 			$_SESSION['uphpCAS-user'] = $user;
 			return $user;
 		} else {

--
Gitblit v1.9.1