Handle non-numeric values, just in case.

        Patch by kareila. 

diffs (12 lines):

diff -r 09e597f01df1 -r a923998bc864 htdocs/tools/endpoints/esn_inbox.bml
--- a/htdocs/tools/endpoints/esn_inbox.bml      Wed Nov 24 09:47:51 2010 -0600
+++ b/htdocs/tools/endpoints/esn_inbox.bml      Wed Nov 24 10:03:46 2010 -0600
@@ -63,7 +63,7 @@ _c?>
     $ret{items} = [];
     my $inbox = $u->notification_inbox;
     my $cur_folder = $POST{'cur_folder'} || 'all';
-    my $itemid = $POST{itemid} ? $POST{itemid} + 0 : 0;
+    my $itemid = $POST{itemid} && $POST{itemid} =~ /^\d+$/ ? $POST{itemid} + 0 
: 0;
 
     # do actions
     if ($action eq 'mark_read') {
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to