0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-01-24 14:21:52 +00:00

add base64_encode to Munge

This commit is contained in:
Alex Lobtsov 2014-03-26 14:46:14 +04:00
parent 80ebd4322e
commit dd9585f314

View File

@ -109,6 +109,7 @@ class HTMLPurifier_URIFilter_Munge extends HTMLPurifier_URIFilter
if ($this->secretKey) {
$this->replace['%t'] = hash_hmac("sha256", $string, $this->secretKey);
}
$this->replace['%b'] = base64_encode($string);
}
}