Browse Source

Fixed bug #23650 (strip_tags() removes hyphens)

migration/unlabaled-1.3.2
Moriyoshi Koizumi 24 years ago
parent
commit
8cbb6b6341
  1. 2
      ext/standard/string.c

2
ext/standard/string.c

@ -3902,6 +3902,8 @@ PHPAPI size_t php_strip_tags(char *rbuf, int len, int *stateptr, char *allow, in
case '-':
if (state == 3 && p >= buf + 2 && *(p-1) == '-' && *(p-2) == '!') {
state = 4;
} else {
goto reg_char;
}
break;

Loading…
Cancel
Save