mirror of https://github.com/MISP/MISP
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
parent
b0ca0d6130
commit
19781ee3c9
|
@ -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.'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue