- 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.