View Single Post
Old 03-17-2004, 08:30 AM   #6
Konstantine
Green Mole
 
Join Date: Mar 2004
Location: Russia
Posts: 21
I found it (BUG)!!! And it's not in PHPDIG It's in PHP function

I use PHP Version 4.3.3, OS Linux, so the bug is in parse_url function

You can find it out on site madboard.ru. If you'll try to index it you'll find about 42 pages (if the bug is in your version of PHP).

So change in robot_functions.php in function function phpdigRewriteUrl($eval)

code:

PHP Code:
$url = @parse_url(str_replace('\\\\'"','',$eval));
if (!isset($url['path'])) {
     $url['path'] = '';

by following code:

PHP Code:
$url = @parse_url(str_replace('\\\\'"','',$eval));
$url['query']=str_replace("
&","&",$url['query']);
if (!isset($url['path'])) {
     $url['path'] = '';

After that try to index madboard.ru again

You'll find about 400 pages!!!

the bug is:

if you try to parse url http://madboard.ru/index.html?act=do&code=43 you'll get in 'query' line act=do&code=43

Any questions?

If you tried it and it was as I said, please reply on this message
Konstantine is offline   Reply With Quote