mirror of
https://github.com/php/php-src.git
synced 2026-04-18 05:21:02 +02:00
A round of "d'ohs" for me, please.
We must not stop scanning after finding a "?", because we need the information regarding the "#".
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* Generated by re2c 0.5 on Sun Sep 9 16:51:59 2001 */
|
||||
#line 1 "url_scanner_ex.re"
|
||||
/* Generated by re2c 0.5 on Mon Sep 10 13:21:04 2001 */
|
||||
#line 1 "/home/sas/src/php4/ext/standard/url_scanner_ex.re"
|
||||
/*
|
||||
+----------------------------------------------------------------------+
|
||||
| PHP version 4.0 |
|
||||
@@ -156,7 +156,7 @@ yy3:
|
||||
yy4: yych = *++YYCURSOR;
|
||||
yy5:
|
||||
#line 110
|
||||
{ sep = separator; goto done; }
|
||||
{ sep = separator; goto scan; }
|
||||
yy6: yych = *++YYCURSOR;
|
||||
yy7:
|
||||
#line 111
|
||||
|
||||
@@ -107,7 +107,7 @@ static inline void append_modified_url(smart_str *url, smart_str *dest, smart_st
|
||||
scan:
|
||||
/*!re2c
|
||||
":" { smart_str_append(dest, url); return; }
|
||||
"?" { sep = separator; goto done; }
|
||||
"?" { sep = separator; goto scan; }
|
||||
"#" { bash = p - 1; goto done; }
|
||||
(any\[:?#])+ { goto scan; }
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user