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:
parent
80ebd4322e
commit
dd9585f314
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user