Skip to content

Commit

Permalink
Check for timestamp granularity
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-meyer committed Jul 1, 2022
1 parent 3d4c65d commit 02f2df6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Classes/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@ public function ListRecords() {
$this->errors[] = new Exception('badArgument');
}
}
if (isset($this->args['from']) && isset($this->args['until'])) {
if (strlen($this->args['from']) !== strlen($this->args['until'])) {
$this->errors[] = new Exception('badArgument');
}
}
if (isset($this->args['set'])) {
$this->errors[] = new Exception('noSetHierarchy');
}
Expand Down

0 comments on commit 02f2df6

Please sign in to comment.