Skip to content

Commit

Permalink
Merge pull request #2550 from splitbrain/wl-redirect-consistency
Browse files Browse the repository at this point in the history
unify send_redirect(wl()) parameters
  • Loading branch information
splitbrain committed Jan 9, 2019
2 parents 0da6f92 + 2eb1177 commit ee73f09
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion inc/Action/Logout.php
Expand Up @@ -41,7 +41,7 @@ public function preProcess() {

// do the logout stuff and redirect to login
auth_logoff();
send_redirect(wl($ID, array('do' => 'login')));
send_redirect(wl($ID, array('do' => 'login'), true, '&'));

// should never be reached
throw new ActionException('login');
Expand Down
2 changes: 1 addition & 1 deletion inc/Action/Redirect.php
Expand Up @@ -55,7 +55,7 @@ public function preProcess() {
* @param array $opts id and fragment for the redirect and the preact
*/
public function redirect($opts) {
$go = wl($opts['id'], '', true);
$go = wl($opts['id'], '', true, '&');
if(isset($opts['fragment'])) $go .= '#' . $opts['fragment'];

//show it
Expand Down
2 changes: 1 addition & 1 deletion inc/pageutils.php
Expand Up @@ -86,7 +86,7 @@ function getID($param='id',$clean=true){
if (isset($urlParameters['id'])) {
unset($urlParameters['id']);
}
send_redirect(wl($id,$urlParameters,true));
send_redirect(wl($id, $urlParameters, true, '&'));
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/config/admin.php
Expand Up @@ -74,7 +74,7 @@ public function handle() {
// save state & force a page reload to get the new settings to take effect
$_SESSION['PLUGIN_CONFIG'] = array('state' => 'updated', 'time' => time());
$this->_close_session();
send_redirect(wl($ID,array('do'=>'admin','page'=>'config'),true,'&'));
send_redirect(wl($ID, array('do'=>'admin','page'=>'config'), true, '&'));
exit();
} elseif(!$this->_error) {
$this->_config->touch_settings(); // just touch to refresh cache
Expand Down

0 comments on commit ee73f09

Please sign in to comment.