- From: Shane McCarron <shane@aptest.com>
- Date: Thu, 18 Sep 2008 16:41:42 -0500
- To: Toby A Inkster <tai@g5n.co.uk>
- CC: RDFa <public-rdf-in-xhtml-tf@w3.org>, Manu Sporny <msporny@digitalbazaar.com>, andy.seaborne@hp.com
Toby A Inkster wrote: > > For Shane's benefit: I'm guessing what he's doing is passing URLs to > the URI::URL Perl module to help resolve relative URIs. My workaround > has been to first compare them against this regexp: > > /^([a-z][a-z0-9\+\.\-]*)\:/i > > If the URI matches that regexp, then it's already absolute, so you > don't need to pass it through URI::URL. Fun! Actually, what is happening in my implementation is that I am using URI->new_abs to ensure that all URIs are absolute URIs (and create absolute URIs from relative ones). I worked around this by using the URI classes as_string method instead of canonical method - works fine. It just surprised me that the stuff was treated case-sensitively when the RFC said it should not me. And, of course, I had forgotten the earlier discussion. Thanks for reminding me, Toby! -- Shane P. McCarron Phone: +1 763 786-8160 x120 Managing Director Fax: +1 763 786-8180 ApTest Minnesota Inet: shane@aptest.com
Received on Thursday, 18 September 2008 21:54:31 UTC