1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 01:04:16 +02:00
This commit is contained in:
Ryan Cramer
2020-04-15 16:37:09 -04:00
parent 6bd7901011
commit b44669397a

View File

@@ -459,7 +459,7 @@ class Sanitizer extends Wire {
if(ctype_alpha($value) && strlen($value) <= $maxLength) return $value; // simple 1-word attributes
// remove any non ":_a-zA-Z" characters from beginning of attribute name
while(strpos(":_$this->alphaASCII", substr($value, 0, 1)) === false && strlen($value)) {
while(strlen($value) && strpos(":_$this->alphaASCII", substr($value, 0, 1)) === false) {
$value = substr($value, 1);
}