mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 18:24:57 +02:00
Merge branch 'patch-1' of https://github.com/pine3ree/processwire-1 into pine3ree-patch-1
This commit is contained in:
@@ -1823,9 +1823,11 @@ class Sanitizer extends Wire {
|
||||
$value = "";
|
||||
} else if(is_bool($value)) {
|
||||
$value = $value ? "1" : "";
|
||||
} else if(is_array($value)) {
|
||||
$value = "array-" . count($value);
|
||||
} else if(!is_string($value)) {
|
||||
$value = (string) $value;
|
||||
}
|
||||
if(is_array($value)) $value = "array-" . count($value);
|
||||
if(!is_string($value)) $value = (string) $value;
|
||||
if(!is_null($sanitizer) && is_string($sanitizer) && (method_exists($this, $sanitizer) || method_exists($this, "___$sanitizer"))) {
|
||||
$value = $this->$sanitizer($value);
|
||||
if(!is_string($value)) $value = (string) $value;
|
||||
|
Reference in New Issue
Block a user