Hello!

I'm using relevant_content_cck along with the token based formatting to create a little HTML snippet that includes the author of the post. To do this, I select the "Full HTML" input filter, which the admins setting up relevant content have permission to use (anonymous users do not). Everything works fine when the admins view, but it's viewed by anonymous users, they are shown "n/a" instead.

This is because no value is being passed for the third argument of check_markup() so the default of TRUE gets used. See the documentation here:

http://api.drupal.org/api/drupal/modules--filter--filter.module/function...

Basically, TRUE is for when you are previewing your own unsaved content. But when you are viewing content created by someone else, FALSE needs to be passed.

In relevant_content_cck.module line 182 it IS passing FALSE to check_markup(). But in relevant_content_cck.theme.inc line 20, it isn't. I assume this was just an oversight! Attached is a patch to fix.

Thanks!
David.

CommentFileSizeAuthor
relevant_content-na.patch712 bytesdsnopek

Comments

nicholasthompson’s picture

Status: Needs review » Closed (fixed)

Thanks. Fixed in dev.

All instances of check_markup now use FALSE where appropriate. Silly mistake.