mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-27 16:36:00 +00:00
Add a validator on URL entity
This commit is contained in:
parent
3f491fe9ca
commit
67c5270fdc
5 changed files with 78 additions and 5 deletions
|
@ -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'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue