@@ -17,18 +17,18 @@ class HTMLPurifier_AttrDef_HTML_ID extends HTMLPurifier_AttrDef
1717
1818 public function validate ($ id , $ config , $ context ) {
1919
20- if (!$ config ->get ('Attr ' , ' EnableID ' )) return false ;
20+ if (!$ config ->get ('Attr. EnableID ' )) return false ;
2121
2222 $ id = trim ($ id ); // trim it first
2323
2424 if ($ id === '' ) return false ;
2525
26- $ prefix = $ config ->get ('Attr ' , ' IDPrefix ' );
26+ $ prefix = $ config ->get ('Attr. IDPrefix ' );
2727 if ($ prefix !== '' ) {
28- $ prefix .= $ config ->get ('Attr ' , ' IDPrefixLocal ' );
28+ $ prefix .= $ config ->get ('Attr. IDPrefixLocal ' );
2929 // prevent re-appending the prefix
3030 if (strpos ($ id , $ prefix ) !== 0 ) $ id = $ prefix . $ id ;
31- } elseif ($ config ->get ('Attr ' , ' IDPrefixLocal ' ) !== '' ) {
31+ } elseif ($ config ->get ('Attr. IDPrefixLocal ' ) !== '' ) {
3232 trigger_error ('%Attr.IDPrefixLocal cannot be used unless ' .
3333 '%Attr.IDPrefix is set ' , E_USER_WARNING );
3434 }
@@ -51,7 +51,7 @@ public function validate($id, $config, $context) {
5151 $ result = ($ trim === '' );
5252 }
5353
54- $ regexp = $ config ->get ('Attr ' , ' IDBlacklistRegexp ' );
54+ $ regexp = $ config ->get ('Attr. IDBlacklistRegexp ' );
5555 if ($ regexp && preg_match ($ regexp , $ id )) {
5656 return false ;
5757 }
0 commit comments