Closed (fixed)
Project:
Google Analytics
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2008 at 00:10 UTC
Updated:
23 Feb 2008 at 23:21 UTC
User submitted strings (which role name definitely is) should never be passed to t(). I also added check_plain() to it. It's not a security threat/bug, because roles are always created by administrator, but let's do this the right way and be sure.
Attaching a patch. I also fixed one english typo and removed $role_varname, as you never used it.
Originally reported here: http://drupal.org/node/216433, I just use code from Google analytics for this part.
| Comment | File | Size | Author |
|---|---|---|---|
| google_analytics.patch | 1.48 KB | michal.cihar |
Comments
Comment #1
hass commentedI committed the typo in the first line, but haven't removed the t() from roles translation. I know user defined strings shouldn't be t'ified, but you should take a look to D6 admin/user/roles... they are translated.
And i'm finaly not sure why you change this:
Comment #2
hass commentedComment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.