Commit f592392c authored by Carsten  Rose's avatar Carsten Rose
Browse files

#5022 / Variable violates sanatize class: 'msg' instead of empty string - new...

#5022 / Variable violates sanatize class: 'msg' instead of empty string - new identifier "!!<sanitize class>!!"
parent fcd926d3
......@@ -79,6 +79,8 @@ const SANITIZE_DEFAULT = SANITIZE_ALLOW_DIGIT;
const SANITIZE_EXCEPTION = 'exception';
const SANITIZE_EMPTY_STRING = 'empty string';
const SANITIZE_VIOLATE = '!!';
// Index wrap setup table
const WRAP_SETUP_TITLE = 'title';
const WRAP_SETUP_ELEMENT = 'element';
......
......@@ -129,8 +129,8 @@ class Sanitize {
throw new UserFormException($errorText, $errorCode);
}
// check failed: return empty string
return '';
// check failed: return marker
return SANITIZE_VIOLATE . $sanitizeClass . SANITIZE_VIOLATE;
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment