imscp icon indicating copy to clipboard operation
imscp copied to clipboard

strpos breaks validation for 3 chars subdomains

Open alecs opened this issue 1 year ago • 0 comments

Because of the way strpos works, checking if position is 0 may also match when strpos returns false, unless using ===.

See: https://www.php.net/manual/en/function.strpos.php https://www.php.net/manual/en/language.operators.comparison.php

alecs avatar May 29 '24 10:05 alecs