#1 November 18, 2013 5:20pm

spud
Member
Registered: March 27, 2013
Posts: 3

Bug in 301 Redirect tracking

I noticed that the counter for 301 redirects was not incrementing whenever a redirected URL was hit.


There's a bug in the BigTreeCMS class file (these files really should have revision numbers in them), line 1061, which currently reads


sqlquery("UPDATE bigtree_404s SET requests = (requests + 1) WHERE = '".$f["id"]."'");


but it's missing the object of the WHERE clause. It should read



sqlquery("UPDATE bigtree_404s SET requests = (requests + 1) WHERE id = '".$f["id"]."'");


That should fix the broken counter.

Offline

#2 November 18, 2013 5:23pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 932

Re: Bug in 301 Redirect tracking

Thanks spud! I've pushed the fix into 4.0-devel. Should be in the 4.0.1 release that should be out in the next two weeks or so.

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.