Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
Fix: Ditto - sql error of &documents parameter
Browse files Browse the repository at this point in the history
ref: #1089
  • Loading branch information
yama committed Dec 10, 2016
1 parent e39b9d6 commit 21fabe6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/snippets/ditto/classes/ditto.class.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ function determineIDs($IDs, $IDType, $TVs, $orderBy, $depth, $showPublishedOnly,
$documentIDs = $this->getChildIDs($IDs, $depth);
break;
case "documents":
if(!preg_match('@^[0-9, ]*$@',$IDs)) exit(sprintf('Illegal value of &documents: %s', $IDs));
$documentIDs = explode(",",$IDs);
break;
}
Expand Down

0 comments on commit 21fabe6

Please sign in to comment.