Closed (fixed)
Project:
Invite
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2011 at 21:18 UTC
Updated:
4 Jan 2012 at 04:50 UTC
Jump to comment: Most recent file
- drupal_set_message(t('!user (@email) has joined @site-name!', array('!user' => theme('username', $account), '@email' => $account->mail, '@site-name' => variable_get('site_name', t('Drupal')))));
+ drupal_set_message(check_plain(t('!user (@email) has joined @site-name!', array('!user' => theme('username', $account), '@email' => $account->mail, '@site-name' => variable_get('site_name', t('Drupal'))))));
From the coder change
It's doesn't need it and messes with the message (@site-name, @email already check_plained, !user is html and should definitely not be check plain-ed)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | incorrect_checkplain-1376578.patch | 767 bytes | goron |
Comments
Comment #1
goron commentedHere's a patch to fix this
Comment #2
glekli commentedThanks, looks good to me. Committed.