[svn r20989] FS#4258 - Global agenda: Fixing an inaccurate security check that preveted adding personal events.

skala
Ivan Tcholakov 16 years ago
parent 9593861b31
commit c2510f1338
  1. 2
      main/calendar/myagenda.inc.php

@ -302,7 +302,7 @@ function show_new_personal_item_form($id = "")
// we are loading the information here (we do this after everything else
// to overwrite the default information)
if ($id != strval(intval($id))) {
if (strlen($id) > 0 && $id != strval(intval($id))) {
return false; //potential SQL injection
}

Loading…
Cancel
Save