|
03-12-2004, 09:43 PM | #1 |
Green Mole
Join Date: Mar 2004
Location: Russia
Posts: 21
|
Bug in grabbing urls from the page
Hello again! I found, that if link looks like:
≶a href=next/index.html>next/index.html≶/a> i.e. without quotes, phpdig don't follow it! |
03-13-2004, 09:54 AM | #2 |
Green Mole
Join Date: Mar 2004
Location: Russia
Posts: 21
|
Sorry, no bug found
|
03-13-2004, 10:15 AM | #3 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hi Konstantine, and welcome to PhpDig.net!
Thanks for the contributions too. It's good to have other people review the code and offer input.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
03-13-2004, 10:18 AM | #4 |
Green Mole
Join Date: Mar 2004
Location: Russia
Posts: 21
|
I had that problem on my work but can't verify it now and tell what really happend.
|
03-15-2004, 08:12 AM | #5 |
Green Mole
Join Date: Mar 2004
Location: Russia
Posts: 21
|
Hi again, so there IS a bug. I can't explain why is it, but you can see it. Try to index http://madboard.ru and look at the page http://madboard.ru/index.html?act=do&code=43. So you will not find links such as http://madboard.ru/index.html?act=do&code=45. Try it. I didn't found why is it happening. Any sugestions?
|
03-17-2004, 09:30 AM | #6 |
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:
PHP Code:
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 |
03-25-2004, 06:34 AM | #7 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hi. Speaking of & versus & there is a small bug in version 1.8.0 when PHPDIG_SESSID_REMOVE is set to true. To fix do the following.
In robot_functions.php find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
refine search to two or more urls | fmehl | How-to Forum | 2 | 10-01-2006 01:52 PM |
One of the urls is ALWAYS locked? | ChadK | Troubleshooting | 1 | 09-23-2004 07:40 PM |
help with grabbing text from calendar | simonaut | Coding & Tutorials | 1 | 03-12-2004 11:15 AM |
PhpDig crop the URLs at ( | gaam | Troubleshooting | 2 | 02-11-2004 05:32 AM |
Just getting all urls | tobkau | How-to Forum | 1 | 01-29-2004 08:00 PM |