PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Mod Requests

Reply
 
Thread Tools
Old 08-19-2004, 04:29 PM   #1
x0dus
Green Mole
 
Join Date: Aug 2004
Posts: 1
URL ? Bug Fix

Hi,

I just started using PHPDig a while ago and couldn't figure out why it kept on respidering the index document over and over again. I realized it's because on 404 errors it goes to the homepage. But there's no reason I should have so many 404 errors... Till I figured out what was causing it. I like to track external clicks and have a script so links look like this:

http://www.server.com/c.php?url=http://www.xxx.com/filename.asp?moreparameters&here

While I realize I should have urlencoded the url, every browser I've ever seen parses the url correctly. PHPDig however was requesting a file called filename.asp on my server over and over again. So my mod suggestion is when detecting the filename in a link, look for the first '?' if it exists in the filename not the last! Thanks,

x0dus
x0dus is offline   Reply With Quote
Old 08-20-2004, 05:55 AM   #2
ChadK
Green Mole
 
Join Date: May 2004
Posts: 23
Seems a reasonable request...
ChadK is offline   Reply With Quote
Old 08-20-2004, 07:04 AM   #3
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
What happens if you add url to the PHPDIG_SESSID_VAR constant in the config file? Need to strip out more characters? Just edit the following line in the robot_functions.php file:
PHP Code:
$eval ereg_replace($what.'=[a-zA-Z0-9.,;=/-]*','',$eval); 
__________________
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.
Charter is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
phpdigSessionRemove() fix zas Mod Submissions 0 05-14-2007 07:09 AM
Cleanup Engine Bug and Fix Charter Bug Tracker 0 03-08-2004 11:35 AM
Bug fix for pdftohtml alivin70 Mod Submissions 0 02-25-2004 08:19 AM
Regular Expression Fix Charter Mod Submissions 0 12-03-2003 12:58 AM
Version 1.6.3 Highlight Bug & Fix Charter Bug Tracker 2 11-17-2003 01:16 AM


All times are GMT -8. The time now is 11:36 PM.


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