Re: url_scanner.re

From: Date: Tue, 28 Mar 2000 13:53:31 +0000
Subject: Re: url_scanner.re
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-12744@lists.php.net to get a copy of this message
On Tue, Mar 28, 2000 at 03:48:24PM +0200, Thomas Stinner wrote: > Hello, > > i'm trying to fix a bug i reported two weeks ago. (Bug ID #3848) > > > I was able to track it down to url_scanner.re, but i am unable to fix > it. I don't know what re2c is and where to get it (and the > documentation). > > What i basicly wanted to change is around line 165: > > 162 /*!re2c > 163 ["]? ws* (all\[> \t\v\f":#])* ws* ["]? { BEGIN(INITIAL); } > 164 ["]? ws* (all\[> \t\v\f":#])* /[#] { BEGIN(INITIAL); } > 165 ["]? ws* (all\[> \t\v\f"#])* ws* ["]? { > 166 /* don't modify absolute links */ > 167 state->state = INITIAL; BEGIN(INITIAL); > > > I wanted to add an expression so that empty links (<A HREF=""> for > example) do not get modified. Can you point me to any standard which says that empty href elements are not considered a link? > Can someone help me with that? You can find re2c by going to http://freshmeat.net and entering re2c into the search field. - Sascha

« previous php.version4 (#12744) next »