PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Mod Requests (http://www.phpdig.net/forum/forumdisplay.php?f=23)
-   -   Relative links to follow in meta-refresh and Javascript (http://www.phpdig.net/forum/showthread.php?t=86)

obottek 09-22-2003 11:01 AM

Relative links to follow in meta-refresh and Javascript
 
Hi,

I found out, that Phpdig 1.6.2 does not follow meta-refresh urls, if the are relative. It does follow, if the urls are absolute. The same with Javascript links.

I guess there are good reasons for this, but since a lot of sites and pages are using refresh-redirects or navigations with relative Javascript links, Phpdig should be able to deal with it.

Actually, it should just take the current directory (without the document itself) and should then add the document name. I know, that this can also cause some trouble with Javascript-defined directories. So maybe we can make a feature, which can be enabled in the config.

Regards,
Olaf

obottek 09-23-2003 06:12 AM

Hmmm, the problem seams to be more complex then I thought. Phpdig seams to successfully parse meta-refresh-redirects with documents only, like:

Code:

...0, url=index.php ...
But it does not parse the same situation with directories involved, like:

Code:

...0, url=subdirectory1/subdirectory2/index.php ...
Well I would call this a bug.

Someone with a patch?

Charter 10-05-2003 10:05 AM

Hi. Thanks for the info. Can you please post the requests that show in your raw log files, or is it that PhpDig completely ignores the cases where the relative URL is like subdirectory1/subdirectory2/index.php?

obottek 10-05-2003 10:18 AM

It does ignore the cases.

Charter 10-05-2003 10:20 AM

Okay, thanks, will look into it. :)


All times are GMT -8. The time now is 05:30 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.