You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Phalcon\Html\Escaper::html(string input = null) the validation of the input string is not correct:
if !input {
return "";
}
In PHP, the implicit conversion of string "0" to bool results to false. Therefore, string "0" is escaped to an empty string.
The correct validation should read
In
Phalcon\Html\Escaper::html(string input = null)
the validation of the input string is not correct:In PHP, the implicit conversion of string
"0"
tobool
results tofalse
. Therefore, string"0"
is escaped to an empty string.The correct validation should read
How to reproduce:
Expected result is
"0"
and not an empty string.Details
The text was updated successfully, but these errors were encountered: