mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
Remove error_return_url more efficiently
This commit is contained in:
parent
586f010f55
commit
2cbfd4500c
2 changed files with 5 additions and 4 deletions
|
|
@ -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['rnd']);
|
||||||
unset($get_vars['vid']);
|
unset($get_vars['vid']);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -234,7 +234,7 @@ function getUrl()
|
||||||
$url = Context::getRequestUri();
|
$url = Context::getRequestUri();
|
||||||
}
|
}
|
||||||
|
|
||||||
return preg_replace('@\berror_return_url=[^&]*|\w+=(?:&|$)@', '', $url);
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -257,7 +257,7 @@ function getNotEncodedUrl()
|
||||||
$url = Context::getRequestUri();
|
$url = Context::getRequestUri();
|
||||||
}
|
}
|
||||||
|
|
||||||
return preg_replace('@\berror_return_url=[^&]*|\w+=(?:&|$)@', '', $url);
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -280,7 +280,7 @@ function getAutoEncodedUrl()
|
||||||
$url = Context::getRequestUri();
|
$url = Context::getRequestUri();
|
||||||
}
|
}
|
||||||
|
|
||||||
return preg_replace('@\berror_return_url=[^&]*|\w+=(?:&|$)@', '', $url);
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue