diff options
| author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-05-16 06:19:51 +0000 |
|---|---|---|
| committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-05-16 06:19:51 +0000 |
| commit | 8cbb6b6341d365caa745245670f57008f36f5b3a (patch) | |
| tree | f9a3735dfa2c4c9ff59ddc995c6f838ab87a5f2d /ext | |
| parent | e2444c223b0b6aab53012ab6df856a530d6d2b09 (diff) | |
| download | php-git-8cbb6b6341d365caa745245670f57008f36f5b3a.tar.gz | |
Fixed bug #23650 (strip_tags() removes hyphens)
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/standard/string.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index 861c6bfffe..a61814e16a 100644 --- a/ext/standard/string.c +++ b/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; |
