X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FTools%2FUtils.php;h=4561f39f08cc87741fff5394c89197e78abe14f8;hb=aafb3321b75976bd4614d5c033df175853f0cbb0;hp=0c78311021535da7b50ce104aeb894402568ef95;hpb=23afdf3a70a5035cb58b76138a8627701ba55273;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Tools/Utils.php b/src/Wallabag/CoreBundle/Tools/Utils.php index 0c783110..4561f39f 100644 --- a/src/Wallabag/CoreBundle/Tools/Utils.php +++ b/src/Wallabag/CoreBundle/Tools/Utils.php @@ -16,7 +16,7 @@ class Utils $token = substr(base64_encode(random_bytes($length)), 0, $length); // remove character which can broken the url - return str_replace(array('+', '/'), '', $token); + return str_replace(['+', '/'], '', $token); } /**