From 132f614dee55634f83d858d30759226586807566 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Wed, 1 Apr 2015 21:54:22 +0200 Subject: [PATCH] Avoid / in feed token Of course, it breaks the url and the route matcher for each feed route --- src/Wallabag/CoreBundle/Tools/Utils.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Wallabag/CoreBundle/Tools/Utils.php b/src/Wallabag/CoreBundle/Tools/Utils.php index de97c796..8fa74491 100644 --- a/src/Wallabag/CoreBundle/Tools/Utils.php +++ b/src/Wallabag/CoreBundle/Tools/Utils.php @@ -22,6 +22,7 @@ class Utils $token = substr(base64_encode(uniqid(mt_rand(), true)), 0, 20); } - return str_replace('+', '', $token); + // remove character which can broken the url + return str_replace(array('+', '/'), '', $token); } } -- 2.41.0