mirror of
https://github.com/friendica/friendica
synced 2025-04-26 07:50:15 +00:00
handle multiple underscores in D* links
This commit is contained in:
parent
5a7363b248
commit
08941d4285
2 changed files with 8 additions and 1 deletions
|
@ -53,6 +53,8 @@ if((isset($_SESSION)) && (x($_SESSION,'authenticated')) && ((! (x($_POST,'auth-p
|
|||
$check = get_config('system','paranoia');
|
||||
// extra paranoia - if the IP changed, log them out
|
||||
if($check && ($_SESSION['addr'] != $_SERVER['REMOTE_ADDR'])) {
|
||||
logger('Session address changed. Paranoid setting in effect, blocking session. '
|
||||
. $_SESSION['addr'] . ' != ' . $_SERVER['REMOTE_ADDR']);
|
||||
nuke_session();
|
||||
goaway(z_root());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue