Permalink
Browse files

little fixes for xp/xg

  • Loading branch information...
1 parent 4450ad2 commit c3a49501564ba6c1fb740d83500afc57c112f384 dervan committed Sep 7, 2009
Showing with 3 additions and 7 deletions.
  1. +2 −2 system/common.php
  2. +1 −5 system/core/users/users.logout.inc.php
View
@@ -552,10 +552,10 @@ function sed_disable_mqgpc(&$value, $key)
$x = empty($_POST['x']) ? $_GET['x'] : $_POST['x'];
if (!defined('SED_NO_ANTIXSS') && !defined('SED_AUTH')
- && ($_SERVER['REQUEST_METHOD'] == 'POST'&& $x != $sys['xk']
+ && ($_SERVER['REQUEST_METHOD'] == 'POST' && $x != $sys['xk']
|| isset($_GET['x']) && $_GET['x'] != $sys['xk']))
{
- sed_redirect(sed_url('message', 'msg=951', '', true));
+ sed_redirect(sed_url('message', 'msg=950', '', true));
exit;
}
@@ -15,11 +15,7 @@
defined('SED_CODE') or die('Wrong URL');
-if (!sed_check_xg())
-{
- header('Location: ' . SED_ABSOLUTE_URL . sed_url('message', 'msg=951', '', TRUE));
- exit;
-}
+sed_check_xg();
/* === Hook === */
$extp = sed_getextplugins('users.logout');

0 comments on commit c3a4950

Please sign in to comment.