Closed (fixed)
Project:
Cookie Control
Version:
7.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
22 May 2012 at 11:19 UTC
Updated:
8 Jun 2012 at 20:41 UTC
I've enabled the cookie_googleanaltyics module and get the following error.
http://www.mysite.com/function%20ccAddAnalytics%28%29%20%7B%0Asites/all/themes/omega/js/omega.js%0A%7D?m4f7v3 403 (Forbidden)
It seems to come from the cookie_googleanalytics_js_alter() function. If I output $script, it looks like following is also being produced.
function ccAddAnalytics() {
sites/all/themes/omega/js/omega.js
}
Everything seems to work though.
Comments
Comment #1
tce commentedLooking at it again, I think the
strpos($script['data'], 'ga.js') > 0is matching the ga/js part of the string from/all/themes/omega/js/omega.js. I changed it to:and it's fixed the problem.
Comment #2
buddathe problem with including the full domain is that when the ga.js is cached locally on the server the domain wont be in the path.
But yes it is the reason why omega.js is being caught.
Maybe "/ga.js" is the best match.
Comment #3
buddaFixed in dev branch and dev snapshot when it rebuilds.
Comment #4.0
(not verified) commentedtypo