aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeroenpraat <jeroenpraat@xs4all.nl>2014-07-11 22:28:26 +0000
committerjeroenpraat <jeroenpraat@xs4all.nl>2014-07-11 22:28:26 +0000
commit29aece3472ff2d9c54b38c0d4204c907bb068d77 (patch)
tree22084ec0d3beff9461f0b9c9135d66019ffd1350
parent1839808da04969a13d53df56f88026fe98838d45 (diff)
downloadvolse-hubzilla-29aece3472ff2d9c54b38c0d4204c907bb068d77.tar.gz
volse-hubzilla-29aece3472ff2d9c54b38c0d4204c907bb068d77.tar.bz2
volse-hubzilla-29aece3472ff2d9c54b38c0d4204c907bb068d77.zip
added A NAME/ID to whitelist in HTMLpurifier. That means we can now make vintage indexes in web pages.
-rwxr-xr-xinclude/text.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index 6d6284ab2..61c731167 100755
--- a/include/text.php
+++ b/include/text.php
@@ -122,6 +122,7 @@ function purify_html($s) {
$config = HTMLPurifier_Config::createDefault();
$config->set('Cache.DefinitionImpl', null);
+ $config->set('Attr.EnableID', true);
$purifier = new HTMLPurifier($config);
return $purifier->purify($s);