-l switch not working if <base href="..."> is given
Hi, The -l switch is meant to disallow retrieving external resources. This works fine unless the html file contains a <base href="something"> tag: in that case, the external resources are retrieved. To check this, I made a test case with an excerpt of the google search page. The attached html files just display the google logo in a table. These two attached html files differ in that "index.html" has the <base> tag commented out, making it non functional, whereas in "index-base.html" it is taken into account. To test this bug, save both html files in a directory. Then create there a subdirectory called ./images where you save the logo.gif. (This is meant for index.html where the missing <base> defaults it to the current directory. In that case, dillo index.html will show the logo, as expected). Then run dillo with the -l switch on the two files: dillo -l index.html index-base.html. The index-base.html will show the logo retrieved from http://www.google.com/intl/en/. The expected behaviour is to not retrieve it. I'll try to look into this bug this weekend, but I'm not so familiar with dillo's internals, so do not expect a miracle. I nearly forgot, this is the released dillo 0.7.0. Cheers. -- Melvin Hadasht
Oops, here are the test files... Kenavo (Breton: Goodbye) -- Melvin Hadasht
participants (1)
-
Melvin Hadasht