PDA

View Full Version : phpDig digs itself?


Jtb
02-20-2004, 07:22 AM
Hi,

just started a phpDig-Cronjob and after 2 hours I was sure it had been in an endless loop..

If I exclude phpDig itself from the dig-job, it works..

No digging itself protection?

Charter
02-20-2004, 05:54 PM
Hi. PhpDig version 1.8.0 with no mods basically follows the links that match the following regex:

while (eregi("(<frame[^>]*src[[:blank:]]*=|href[[:blank:]]*=|http-equiv=['\"]refresh['\"] *content=['\"][0-9]+;url[[:blank:]]*=|window[.]location[[:blank:]]*=|window[.]open[[:blank:]]*[(])[[:blank:]]*[\\\\'\"]?((([[a-z]{3,5}://)+(([.a-zA-Z0-9-])+(:[0-9]+)*))*([:%/?=&;\\\\,._a-zA-Z0-9\\|+-]*))(#[.a-zA-Z0-9-]*)?[\\\\'\" ]?",$eval,$regs)) {

Do you have any links to PhpDig or the search results that would happen to match the above regex?

Jtb
02-21-2004, 01:25 AM
yes, I have <A HREF="/phpdig/">phpdig</A> at the start-Page (Auto-Directory-Index)