FIX - 10.0 - regex to remove 'action' parameter: taking feedback from PR#15213 into account
This commit is contained in:
parent
5e2962ef38
commit
400acf9f65
@ -83,7 +83,7 @@ $(document).ready(function(){
|
|||||||
<?php
|
<?php
|
||||||
$redirectURL = empty($urltorefreshaftermove) ? ($_SERVER['PHP_SELF'].'?'.dol_escape_js($_SERVER['QUERY_STRING'])) : $urltorefreshaftermove;
|
$redirectURL = empty($urltorefreshaftermove) ? ($_SERVER['PHP_SELF'].'?'.dol_escape_js($_SERVER['QUERY_STRING'])) : $urltorefreshaftermove;
|
||||||
// remove action parameter from URL
|
// remove action parameter from URL
|
||||||
$redirectURL = preg_replace('/[&?]action=[^&]*/', '', $redirectURL);
|
$redirectURL = preg_replace('/(&|\?)action=[^&#]*/', '', $redirectURL);
|
||||||
?>
|
?>
|
||||||
location.href = '<?php echo dol_escape_js($redirectURL); ?>';
|
location.href = '<?php echo dol_escape_js($redirectURL); ?>';
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user