diff --git a/CHANGELOG b/CHANGELOG index 5574a97..4d52b62 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,8 @@ Don't display empty option for system messages in delete messages by name Don't show a kick button on your own session in the list of active sessions Allow ignoring incognito chatters Prevent posting the same message twice, if no other message was posted in-between +Instruct browser not to send referrer. +Enable image embedding without cookies as there is no more risk of session leakage. Version 1.20.6 - Jul. 23, 2016 Simplify ignore logic + disallow ignoring chatters with higher status diff --git a/chat.php b/chat.php index 2bbb7b7..fc12477 100644 --- a/chat.php +++ b/chat.php @@ -1352,17 +1352,7 @@ function send_inbox(){ echo "<$H[form]>$H[commonform]".hidden('action', 'inbox').hidden('do', 'clean').submit($I['delselmes'], 'class="delbutton"').'

'; $dateformat=get_setting('dateformat'); $tz=3600*$U['tz']; - if(!isSet($_COOKIE[COOKIENAME]) && get_setting('forceredirect')==0){ - $injectRedirect=true; - $redirect=get_setting('redirect'); - if(empty($redirect)){ - $redirect="$_SERVER[SCRIPT_NAME]?action=redirect&url="; - } - }else{ - $injectRedirect=false; - $redirect=''; - } - if(get_setting('imgembed') && (!$U['embed'] || !isSet($_COOKIE[COOKIENAME]))){ + if(!$U['embed'] && get_setting('imgembed')){ $removeEmbed=true; }else{ $removeEmbed=false; @@ -1380,7 +1370,7 @@ function send_inbox(){ $stmt=$db->prepare('SELECT id, postdate, text FROM ' . PREFIX . 'inbox WHERE recipient=? ORDER BY id DESC;'); $stmt->execute(array($U['nickname'])); while($message=$stmt->fetch(PDO::FETCH_ASSOC)){ - prepare_message_print($message, $injectRedirect, $redirect, $removeEmbed); + prepare_message_print($message, $removeEmbed); echo "