|Posted: Mon, 2008-11-24 22:09|
Observe the following apache access log entry:
x.x.x.x - - [23/Nov/2008:18:56:46 -0800] "GET /gal/main.php?g2_view=core.DownloadItem&g2_itemId=11953&g2_serialNumber=56 HTTP/1.1" 500 798 "http://www.foobert.com/gal/main.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:184.108.40.206) Gecko/20081029 Firefox/220.127.116.11"
Note the 5 character HTML coded ampersand (&) as part of the URL, instead of the single "&" character. This causes G2 to issue 500 server error and the user is getting no pictures. I presume this is a fault of the browser, but, I wonder if there's anyway to accept this URL request and handle it properly. A simple regex substitution (s/\&/\&/g) before processing the request would do the job.
Often, when I see this, it's the result of poorly implemented spammer site suckers, or other malware (my gallery is excluded in robots.txt), however, I do also see it from what looks like legitimate web traffic -- arrived into a different part of the site though a web search and clicked through to the gallery photos embedded there. Thus, I'd sincerely appreciate any help.