Closed (fixed)
Project:
Premium
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2007 at 17:30 UTC
Updated:
3 Sep 2007 at 23:01 UTC
The default output for premium content to non subscribers doesn't filter the nodes teaser text before display. THis means undesirable content may appear.
The $node->teaser should be passed through the check_markup() function to make sure it's safe.
A better theme function would be:
function theme_premium_body($node) {
return check_markup($node->teaser, $node->format, FALSE) . '<br />'.variable_get('premium_message','');
}
Comments
Comment #1
moshe weitzman commentedsounds like a critical to me too
Comment #2
mark matuschka commented+1
Comment #3
allie mickaFixed - thanks!
Comment #4
(not verified) commented