Wrong URL is saved in access log

yhager - October 21, 2009 - 12:53
Project:Boost
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

This patch introduced the following two lines of code in boost_stats.php, of which the second is clearly redundant:

<?php
  $q
= (isset($_GET['qq']) && $_GET['qq'] != 'NULL') ? $_GET['qq'] : NULL;
 
$q = (isset($_GET['q']) && $_GET['q'] != 'NULL') ? $_GET['q'] : NULL;
?>

Since $q is wrong, it gets to save the wrong URL in the access log later.

simple patch attached.

AttachmentSize
yh.patch882 bytes

#1

mikeytown2 - October 21, 2009 - 19:57
Status:needs review» fixed

Thanks for finding and reporting this bug. I'm going to comment this out instead of removing, it's what should have happened in the first place.

#2

yhager - October 22, 2009 - 09:00

cool.

I am working on backporting the stats functionality to Drupal 5.x, so that's how I found this issue. I hope to be able to provide a patch soon (assuming you still accept patches for 5.x).

#3

mikeytown2 - October 22, 2009 - 09:41

5.x should really be a back port of the current dev... if your serious about working with 5.x I can ask to get you CVS access so you can work on it. Most of the hard work in terms of developing new features & killing bugs is done, so back porting shouldn't be that difficult. I don't have any 5.x installs so I'm very reluctant about committing patches because I won't test them on a live server before doing a release. Drop me a line in this thread if your interested #454652: Looking for a co-maintainer - 5.x & feel free to post a patch, just letting you know that I don't commit 5.x code; but I'm sure others would benefit from it.

#4

System Message - November 5, 2009 - 09:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.