]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Tools/Utils.php
CS
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Tools / Utils.php
index de97c796bda9f54d2ebc104439465a5864c23f22..7e2968e77f45153fc55178fd9bac190450a7bb5a 100644 (file)
@@ -5,7 +5,7 @@ namespace Wallabag\CoreBundle\Tools;
 class Utils
 {
     /**
-     * Generate a token used for RSS
+     * Generate a token used for RSS.
      *
      * @return string
      */
@@ -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);
     }
 }