Revert "fix: Fixed an issue where an event view by a malformed UUID would result in a lookup against the leading numerical value in the malformed UUID, fixes #1338"

This reverts commit 1b06413375.
pull/1341/head
Iglocska 2016-07-07 15:06:53 +02:00
parent b0ca0d6130
commit 19781ee3c9
1 changed files with 2 additions and 1 deletions

View File

@ -861,8 +861,9 @@ class EventsController extends AppController {
} else if (!is_numeric($id)) {
throw new NotFoundException(__('Invalid event id.'));
}
$this->Event->id = $id;
if (!is_numeric($id) || !$this->Event->exists()) {
if (!$this->Event->exists()) {
throw new NotFoundException(__('Invalid event.'));
}