diff --git a/src/Wallabag/CoreBundle/Tools/Utils.php b/src/Wallabag/CoreBundle/Tools/Utils.php index de97c796b..8fa744917 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); } }