Skip to content

Commit cb6ad34

Browse files
committed
Fix incorrect static calls
1 parent 4a161bf commit cb6ad34

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

www/logout.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,16 @@
5858
$ticketStore->deleteTicket($session->getSessionId());
5959
}
6060

61+
$httpUtils = new \SimpleSAML\Utils\HTTP();
62+
6163
if ($as->isAuthenticated()) {
6264
\SimpleSAML\Logger::debug('casserver: performing a real logout');
6365

6466
if ($casconfig->getValue('skip_logout_page', false)) {
6567
$as->logout($_GET['url']);
6668
} else {
6769
$as->logout(
68-
\SimpleSAML\Utils\HTTP::addURLParameters(
70+
$httpUtils->addURLParameters(
6971
\SimpleSAML\Module::getModuleURL('casserver/loggedOut.php'),
7072
array_key_exists('url', $_GET) ? ['url' => $_GET['url']] : []
7173
)
@@ -75,10 +77,10 @@
7577
\SimpleSAML\Logger::debug('casserver: no session to log out of, performing redirect');
7678

7779
if ($casconfig->getValue('skip_logout_page', false)) {
78-
\SimpleSAML\Utils\HTTP::redirectTrustedURL(SimpleSAML\Utils\HTTP::addURLParameters($_GET['url'], []));
80+
$httpUtils->redirectTrustedURL($httpUtils->addURLParameters($_GET['url'], []));
7981
} else {
80-
\SimpleSAML\Utils\HTTP::redirectTrustedURL(
81-
\SimpleSAML\Utils\HTTP::addURLParameters(
82+
$httpUtils->redirectTrustedURL(
83+
$httpUtils->addURLParameters(
8284
\SimpleSAML\Module::getModuleURL('casserver/loggedOut.php'),
8385
array_key_exists('url', $_GET) ? ['url' => $_GET['url']] : []
8486
)

www/utility/validateTicket.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@
102102
'proxies' => array_merge([$serviceUrl], $serviceTicket['proxies']),
103103
'sessionId' => $serviceTicket['sessionId']
104104
]);
105+
$httpUtils = new Utils\HTTP();
105106
try {
106-
Utils\HTTP::fetch($pgtUrl . '?pgtIou=' . $proxyGrantingTicket['iou'] .
107+
$httpUtils->fetch($pgtUrl . '?pgtIou=' . $proxyGrantingTicket['iou'] .
107108
'&pgtId=' . $proxyGrantingTicket['id']);
108109

109110
$protocol->setProxyGrantingTicketIOU($proxyGrantingTicket['iou']);

0 commit comments

Comments
 (0)