1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-08 15:57:01 +02:00

Update $sanitizer->removeMB4() method to use a default replacement character (can be set in $options). Plus implement a shorter replacement function (version 2). Also some updates to the $sanitizer->validateFile() method.

This commit is contained in:
Ryan Cramer
2020-11-25 14:12:33 -05:00
parent ee980f153c
commit 2362005e78
2 changed files with 52 additions and 29 deletions

View File

@@ -1548,7 +1548,7 @@ class PagesEditor extends Wire {
* @param HookEvent $event
*
*/
protected function hookFieldtypeSleepValueStripMB4(HookEvent $event) {
public function hookFieldtypeSleepValueStripMB4(HookEvent $event) {
$event->return = $this->wire('sanitizer')->removeMB4($event->return);
}
}