Munge Configuration

phd_hiren - November 27, 2008 - 10:24
Project:HTML Purifier
Version:5.x-1.4
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

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

#1

ezyang - November 27, 2008 - 19:05

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

phd_hiren - November 28, 2008 - 04:16

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

How to configure that with Drupal Module?

#3

ezyang - November 28, 2008 - 04:24
Category:task» support request

It should be on the filter configuration settings page,

#4

phd_hiren - November 28, 2008 - 06:32

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

ezyang - November 28, 2008 - 06:34

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

phd_hiren - November 28, 2008 - 07:08

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

ezyang - November 28, 2008 - 07:13
Category:support request» bug report

Yeah, that would be a great addition!

#8

ezyang - July 10, 2009 - 00:42
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

System Message - July 24, 2009 - 00:50
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.