]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Tools/Utils.php
Avoid / in feed token
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Tools / Utils.php
index de97c796bda9f54d2ebc104439465a5864c23f22..8fa7449173bb3042abf4950b62278a11e2b418d2 100644 (file)
@@ -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);
     }
 }