Skip to content
Snippets Groups Projects
Verified Commit 5653ce6e authored by Pavel Břoušek's avatar Pavel Břoušek
Browse files

chore: fix violations

parent 62358dc7
No related branches found
No related tags found
No related merge requests found
Pipeline #192912 passed with warnings
{ {
"name": "cesnet/simplesamlphp-module-campusmultiauth", "name": "cesnet/simplesamlphp-module-campusmultiauth",
"description": "SimpleSAMLphp module which provides password based and federated authentication on single page",
"type": "simplesamlphp-module", "type": "simplesamlphp-module",
"keywords": [ "keywords": [
"simplesamlphp" "simplesamlphp"
......
...@@ -181,8 +181,7 @@ if (!empty($timeoutDialogConfig)) { ...@@ -181,8 +181,7 @@ if (!empty($timeoutDialogConfig)) {
if (isset($state['SPMetadata']['RelayState'])) { if (isset($state['SPMetadata']['RelayState'])) {
$rsUrl = filter_var( $rsUrl = filter_var(
$state['SPMetadata']['RelayState'], $state['SPMetadata']['RelayState'],
FILTER_VALIDATE_URL, FILTER_VALIDATE_URL
FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED
); );
if ($rsUrl !== false) { if ($rsUrl !== false) {
$restartUrl = $rsUrl; $restartUrl = $rsUrl;
...@@ -192,8 +191,7 @@ if (!empty($timeoutDialogConfig)) { ...@@ -192,8 +191,7 @@ if (!empty($timeoutDialogConfig)) {
if (isset($state['saml:RelayState'])) { if (isset($state['saml:RelayState'])) {
$rsUrl = filter_var( $rsUrl = filter_var(
$state['saml:RelayState'], $state['saml:RelayState'],
FILTER_VALIDATE_URL, FILTER_VALIDATE_URL
FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED
); );
if ($rsUrl !== false) { if ($rsUrl !== false) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment