Skip to content

Commit 1e7d36e

Browse files
authored
Fix client when getting ticket and it's null (#415)
Fix apply to solve an issue during call to preg_match, this method cannot be receive second parameter as null
1 parent bed59a1 commit 1e7d36e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/CAS/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ public function __construct(
10571057
} else {
10581058
//normal mode: get ticket and remove it from CGI parameters for
10591059
// developers
1060-
$ticket = (isset($_GET['ticket']) ? $_GET['ticket'] : null);
1060+
$ticket = (isset($_GET['ticket']) ? $_GET['ticket'] : '');
10611061
if (preg_match('/^[SP]T-/', $ticket) ) {
10621062
phpCAS::trace('Ticket \''.$ticket.'\' found');
10631063
$this->setTicket($ticket);

0 commit comments

Comments
 (0)