Avoid / in feed token
Of course, it breaks the url and the route matcher for each feed route
This commit is contained in:
parent
9744e97131
commit
132f614dee
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user