On Mon, 14 Oct 2002 09:43:11 +0200 Xavier Nodet <[EMAIL PROTECTED]> wrote:

XN> On Sun, 13 Oct 2002 17:19:58 +0200 (EET) Nerijus Baliunas <[EMAIL PROTECTED]> 
wrote:
XN> 
XN> > Hi,
XN> 
XN> > "!" shouldn't be part of url:
XN> 
XN> >> Go take the poll at http://www.clanlib.org!
XN> 
XN> You are right.
...
XN> Unfortunately, we do not have a real URL parser: we only look for
XN> "http://";, and then accept any char that could be part of a URL, not
XN> taking into account the fact that some of them (like '!') can only
XN> appear in some specific parts of the URL.

 But it's probably safe to assume that '!', '?', ',' and '.' can't be the
last character of an URL, isn't it? This should catch 99% of the problems.

XN> Does someone know of an URL parsing code, somewhere ?

 Unfortunately there is no compact URL parsing library I know about. There
is plenty of code which does it but everything I looked at had some
problems.

 Regards,
VZ



-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
_______________________________________________
Mahogany-Developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to