Skip to content

Commit

Permalink
! No need to log an error when someone logs off and has another tab a…
Browse files Browse the repository at this point in the history
…round which still attempts to fetch notifications... It's okay, calm down. (Notifications.php)

! Account for potential inputs inside select boxes. (sbox.js)
  • Loading branch information
Nao committed Jul 22, 2017
1 parent bcb61a6 commit 8d4d155
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion core/app/Notifications.php
Expand Up @@ -255,7 +255,10 @@ public static function action()
$sa = !empty($_REQUEST['sa']) ? $_REQUEST['sa'] : '';

if (we::$is_guest)
fatal_lang_error('no_access', $sa == 'unread' ? false : 'general');
if ($sa == 'unread')
return_raw('no');
else
fatal_lang_error('no_access', 'general');

if ($sa == 'redirect' && isset($_REQUEST['in']))
{
Expand Down
2 changes: 1 addition & 1 deletion core/javascript/sbox.js
Expand Up @@ -317,7 +317,7 @@
// Update the title attr and the display markup
$oritex
.width('')
.html(($newtex.html() || '&nbsp;').replace(/<small>.*?<\/small>/, ''))
.html(($newtex.html() || '&nbsp;').replace(/<small>.*?<\/small>/, '').replace(/<input.*?>/, ''))
.attr('title', $newtex.text().php_unhtmlspecialchars());

newwi = $oritex.width();
Expand Down

0 comments on commit 8d4d155

Please sign in to comment.