In order to mitigate against the brute force attacks against Gitlab accounts, we are moving to all edu-ID Logins. We would like to remind you to link your account with your edu-id. Login will be possible only by edu-ID after November 30, 2021. Here you can find the instructions for linking your account.

If you don't have a SWITCH edu-ID, you can create one with this guide here

kind regards

Commit 7627cd25 authored by haemmer's avatar haemmer
Browse files

Replaces deprecated split with preg_split

parent b34817aa
......@@ -442,7 +442,7 @@ function getIdPPathInfoHint(){
&& !empty($value['SSO'])
&& $value['Type'] != 'wayf'
&& checkPathInfo(getHostNameFromURI($key))
&& isPartOfPathInfo(getHostNameFromURI($key))
return $key;
......@@ -455,7 +455,7 @@ function getIdPPathInfoHint(){
&& !empty($value['SSO'])
&& $value['Type'] != 'wayf'
&& checkPathInfo(getDomainNameFromURI($key))
&& isPartOfPathInfo(getDomainNameFromURI($key))
return $key;
......@@ -522,7 +522,7 @@ function getIPAdressHint() {
function isIPinCIDRBlock($cidr, $ip) {
// Split CIDR notation
list ($net, $mask) = split ("/", $cidr);
list ($net, $mask) = preg_split ("|/|", $cidr);
// Convert to binary string value of 1s and 0s
$netAsBinary = convertIPtoBinaryForm($net);
......@@ -735,12 +735,12 @@ function logAccessEntry($protocol, $type, $sp, $idp){
// Returns true if PATH info indicates a request of type $type
function isRequestType($type){
// Make sure the type is checked at end of path info
return checkPathInfo($type.'$');
return isPartOfPathInfo($type.'$');
// Checks for substrings in Path Info and returns true if match was found
function checkPathInfo($needle){
function isPartOfPathInfo($needle){
if (
&& !empty($_SERVER['PATH_INFO'])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment