Project:HTML Purifier
Version:5.x-1.4
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Not able to find the configuration related to Munge. Can we have in upcoming versions?

http://htmlpurifier.org/live/configdoc/plain.html#URL.Munge

Comments

#1

Munge configuration can be found here:

http://htmlpurifier.org/live/configdoc/plain.html#URI.Munge

If the link is wrong in the Drupal page, that certainly is a bug. Is it?

#2

oops sorry for wrong link I was pointing to URI.Munge

How to configure that with Drupal Module?

#3

Category:task» support request

It should be on the filter configuration settings page,

#4

I didn't find it on filter configuration page. May I know how exactly it is?

I'm getting the link without href attribute. I've also put "a, a[href]" in 'Allowed specification' still no luck.

#5

What version of HTML Purifier are you using?

As for the allowed specification, I recommend against specifying anything there unless you know all the tags you want to allow. Anyway, the appropriate syntax for allowing ONLY a href tags is "a[href]"

#6

Actually I've used "a[href]" from very beginning. I've just looked into the code and I found that the content is being cached.

So after changing the settings, I flushed the cache_htmlpurifier. And It works great! Thank you ezyang for your support.

I think we need to flush the cache on save settings, what you say? Shall I write some patch for that?

#7

Category:support request» bug report

Yeah, that would be a great addition!

#8

Status:active» fixed

The cache won't be cleared automatically when you change configuration (otherwise it would be far too difficult to change configuration for fear of cache slamming your website), but I've added a prominent button and a notice that you need to clear the cache to see your changes on old entries. Fixed in HEAD.

#9

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here