mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-03-19 04:47:02 +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) {
|
if ($this->secretKey) {
|
||||||
$this->replace['%t'] = hash_hmac("sha256", $string, $this->secretKey);
|
$this->replace['%t'] = hash_hmac("sha256", $string, $this->secretKey);
|
||||||
}
|
}
|
||||||
|
$this->replace['%b'] = base64_encode($string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user