|
From: Gabriele B. <g.b...@co...> - 2002-11-04 09:46:31
|
Ciao guys, as Hans Sandsdalen posted early today, he is encountering a problem with base URLs tags: at a first glance, it looks like the 'port' part of URL is not considered. This is the HTML instruction he's got in the document: <base href=3D"http://www2.spacetec.no:8080/www2/docs/Rutiner/Adm-rutiner/" and here is what htdig shows: Tag: base href=3D"http://www2.spacetec.no/www2/docs/Rutiner/Adm-rutiner/" As you can easily notice, the port info as been lost. I had a quick look at the code, and the instructions that concern this are in the HTML.cc file, precisely: <<< case 23: // base { if (!attrs["href"].empty()) { URL tempBase(transSGML(attrs["href"])); *base =3D tempBase; } break; } >>> The first thing that I noticed is that we are using the assignment operator which is not defined in the URL class; I know this doesn't mean it is a *bad* thing (it should work with a simple attribute by attribute copy), I just feel more relaxed by providing our own. Thus, I changed the code of URL.h and .cc files in order to manage it. Again I don't know whether this could solve the problem or not (I also feel stupid because I didn't ask him immediately the version he's using - this bug could already be solved). Ciao -Gabriele =20 --=20 Gabriele Bartolini - Web Programmer Comune di Prato - Prato - Tuscany - Italy g.b...@co... | http://www.comune.prato.it > find bin/laden -name osama -exec rm {} ; |