diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-15 07:58:01 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-15 07:58:01 +0200 |
commit | af497a641c2a46c99bbc67215e041a46c91695bc (patch) | |
tree | 40795f74b9bf9b6bcfeab4f71e39994c6688dd31 /src/Wallabag/CoreBundle/Controller/TagController.php | |
parent | f2e5fdc3666a2a6525b4202ab48df05efeebaf5c (diff) | |
download | wallabag-af497a641c2a46c99bbc67215e041a46c91695bc.tar.gz wallabag-af497a641c2a46c99bbc67215e041a46c91695bc.tar.zst wallabag-af497a641c2a46c99bbc67215e041a46c91695bc.zip |
Redirect to homepage if referer is null
Fix #1924
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/TagController.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/TagController.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/TagController.php b/src/Wallabag/CoreBundle/Controller/TagController.php index e8e9ecbe..16d14d79 100644 --- a/src/Wallabag/CoreBundle/Controller/TagController.php +++ b/src/Wallabag/CoreBundle/Controller/TagController.php | |||
@@ -65,7 +65,9 @@ class TagController extends Controller | |||
65 | } | 65 | } |
66 | $em->flush(); | 66 | $em->flush(); |
67 | 67 | ||
68 | return $this->redirect($request->headers->get('referer')); | 68 | $redirectUrl = $this->get('wallabag_core.helper.redirect')->to($request->headers->get('referer')); |
69 | |||
70 | return $this->redirect($redirectUrl); | ||
69 | } | 71 | } |
70 | 72 | ||
71 | /** | 73 | /** |