We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class Phalcon\Security\Random
public function base64(int len = null) -> string { return base64_encode(this->bytes(len)); } public function base64Safe(int len = null, boolean padding = false) -> string { var s; let s = preg_replace("#[^a-z0-9_=-]+#i", "", this->base64(len)); if !padding { return trim(s, "="); } return s; }
please look at this ↓↓↓
let s = preg_replace("#[^a-z0-9_=-]+#i", "", this->base64(len));
this->base64(len) is not include -, _ characters.
so base64Safe() is not include _, - characters.
i think ...
this->base64(len) -> change , + to _, -
after
preg_replace("#[^a-z0-9_=-]+#i", "", .....
thank you for reading.
The text was updated successfully, but these errors were encountered:
@sergeyklay
Sorry, something went wrong.
Fixed in the 3.0.x branch.
3.0.x
sergeyklay
No branches or pull requests
Class Phalcon\Security\Random
please look at this ↓↓↓
this->base64(len) is not include -, _ characters.
so base64Safe() is not include _, - characters.
i think ...
this->base64(len) -> change , + to _, -
after
preg_replace("#[^a-z0-9_=-]+#i", "", .....
thank you for reading.
The text was updated successfully, but these errors were encountered: