forked from wallabag/wallabag
Add a validator on URL entity
This commit is contained in:
committed by
Jeremy Benoist
parent
3f491fe9ca
commit
67c5270fdc
@ -204,6 +204,8 @@ class EntryController extends AbstractController
|
||||
// entry saved, dispatch event about it!
|
||||
$this->eventDispatcher->dispatch(new EntrySavedEvent($entry), EntrySavedEvent::NAME);
|
||||
|
||||
return $this->redirect($this->generateUrl('homepage'));
|
||||
} elseif ($form->isSubmitted() && !$form->isValid()) {
|
||||
return $this->redirect($this->generateUrl('homepage'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user