From dd9585f3148c1711770092a4af8f4bb4dc36f9ca Mon Sep 17 00:00:00 2001 From: Alex Lobtsov Date: Wed, 26 Mar 2014 14:46:14 +0400 Subject: [PATCH] add base64_encode to Munge --- library/HTMLPurifier/URIFilter/Munge.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/HTMLPurifier/URIFilter/Munge.php b/library/HTMLPurifier/URIFilter/Munge.php index 6e03315a..488096d4 100644 --- a/library/HTMLPurifier/URIFilter/Munge.php +++ b/library/HTMLPurifier/URIFilter/Munge.php @@ -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); } }