Skip to content
Commit 2a7b1bae authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Reject X-OC-MTime header if given as a string with hexadecimal notation



In PHP 7.X hexadecimal notation support was removed from "is_numeric",
so "sanitizeMtime" directly rejected those values; in PHP 5.X, on the
other hand, "sanitizeMtime" returned 0 when a string with hexadecimal
notation was given (as it was the behaviour of "intval"). To provide a
consistent behaviour between PHP versions, and given that it does not
make much sense to send X-OC-MTime in hexadecimal notation, now
X-OC-MTime is always rejected if given as a string with hexadecimal
notation.

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent ffe034ab
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment