Skip to content

Commit be2ad51

Browse files
More strict
1 parent 472faf4 commit be2ad51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/HTML5/Parser/Tokenizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ protected function decodeCharacterReference($inAttribute = false)
12081208
*/
12091209
protected function is_alpha($input)
12101210
{
1211-
if (empty($input)) {
1211+
if (!is_string($input) || 1 !== strlen($input)) {
12121212
return false;
12131213
}
12141214

0 commit comments

Comments
 (0)