Remove error_return_url more efficiently

This commit is contained in:
Kijin Sung 2020-05-18 19:54:05 +09:00
parent 586f010f55
commit 2cbfd4500c
2 changed files with 5 additions and 4 deletions

View file

@ -1700,7 +1700,8 @@ class Context
}
}
// remove vid, rnd
// remove vid, rnd, error_return_url
unset($get_vars['error_return_url']);
unset($get_vars['rnd']);
unset($get_vars['vid']);

View file

@ -234,7 +234,7 @@ function getUrl()
$url = Context::getRequestUri();
}
return preg_replace('@\berror_return_url=[^&]*|\w+=(?:&|$)@', '', $url);
return $url;
}
/**
@ -257,7 +257,7 @@ function getNotEncodedUrl()
$url = Context::getRequestUri();
}
return preg_replace('@\berror_return_url=[^&]*|\w+=(?:&|$)@', '', $url);
return $url;
}
/**
@ -280,7 +280,7 @@ function getAutoEncodedUrl()
$url = Context::getRequestUri();
}
return preg_replace('@\berror_return_url=[^&]*|\w+=(?:&|$)@', '', $url);
return $url;
}
/**