mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-11 09:25:25 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue