Closed (fixed)
Project:
Flexible Blogs
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Mar 2011 at 10:16 UTC
Updated:
8 Jul 2011 at 17:51 UTC
The core blog module uses this code to include the username, because the links are included with (a variant of) theme_links. So the links are themselves escaped in l():
t("!username's blog", array('!username' => format_username($node)))
Unfortunately flexible_blogs does not do that, it escapes the site name itself, so it becomes double escaped. It should use !site instead (like it does in the attributes):
t('!site blog', array('!site' => variable_get('site_name', 'Drupal')))
| Comment | File | Size | Author |
|---|---|---|---|
| escape-sitename.patch | 1.06 KB | gábor hojtsy |
Comments
Comment #1
ksenzeeI'm having a hard time reproducing any bugs associated with this. Everything seems to work with special characters in the site name and the user's name. Any help?
Comment #2
basicmagic.net commentedsubscribe
Comment #3
David_Rothstein commentedI was able to reproduce the bug by putting HTML in the site title. Without the patch, the site name was double-escaped, but with the patch it was (correctly) escaped once.
Therefore, committed: http://drupalcode.org/project/flexible_blogs.git/commit/9fd3b4b