Skip to content

Commit

Permalink
fix bookmark saving; fix #836
Browse files Browse the repository at this point in the history
  • Loading branch information
orthagh committed Jul 27, 2016
1 parent 6a47e36 commit 445ae11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion front/bookmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
if (!isset($_GET["itemtype"])) {
$_GET["itemtype"] = -1;
} else {
$_GET['itemtype'] = (int)$_GET['itemtype'];
if (!is_subclass_of($_GET['itemtype'], 'CommonDBTM')) {
throw new \RuntimeException('Invalid name provided!');
}
}

if (!isset($_GET["url"])) {
Expand Down

0 comments on commit 445ae11

Please sign in to comment.