From cc6853538cec697b67e03fbfef2e5f2c7ebc481f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 13 Jul 2016 10:45:18 +0200 Subject: [PATCH] Properly escape error input in the message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- .../abs/RegexValidationTransformationsPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/plugins/transformations/abs/RegexValidationTransformationsPlugin.php b/libraries/plugins/transformations/abs/RegexValidationTransformationsPlugin.php index 63995e4a9f..caf540395c 100644 --- a/libraries/plugins/transformations/abs/RegexValidationTransformationsPlugin.php +++ b/libraries/plugins/transformations/abs/RegexValidationTransformationsPlugin.php @@ -50,7 +50,7 @@ abstract class RegexValidationTransformationsPlugin extends IOTransformationsPlu $this->success = false; $this->error = sprintf( __('Validation failed for the input string %s.'), - $buffer + htmlspecialchars($buffer) ); }