aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJeremy <jeremy.benoist@gmail.com>2015-04-01 21:54:22 +0200
committerJeremy <jeremy.benoist@gmail.com>2015-04-01 21:59:13 +0200
commit132f614dee55634f83d858d30759226586807566 (patch)
tree4b26eac38ebfe1648d70f975b01210e6a4e0467f /src
parent9744e97131182f413b51a0ce671ff273fc28a0bb (diff)
downloadwallabag-132f614dee55634f83d858d30759226586807566.tar.gz
wallabag-132f614dee55634f83d858d30759226586807566.tar.zst
wallabag-132f614dee55634f83d858d30759226586807566.zip
Avoid / in feed token
Of course, it breaks the url and the route matcher for each feed route
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Tools/Utils.php3
1 files changed, 2 insertions, 1 deletions
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
22 $token = substr(base64_encode(uniqid(mt_rand(), true)), 0, 20); 22 $token = substr(base64_encode(uniqid(mt_rand(), true)), 0, 20);
23 } 23 }
24 24
25 return str_replace('+', '', $token); 25 // remove character which can broken the url
26 return str_replace(array('+', '/'), '', $token);
26 } 27 }
27} 28}