Avoid / in feed token

Of course, it breaks the url and the route matcher for each feed route
This commit is contained in:
Jeremy 2015-04-01 21:54:22 +02:00
parent 9744e97131
commit 132f614dee

View 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);
}
}