aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorVictor A. Safronov <safronov@tomgate.net>2016-11-25 19:47:14 +0400
committerVictor A. Safronov <safronov@tomgate.net>2016-11-25 19:56:41 +0400
commit390a37492dbba7f39539207829eba5d10040b613 (patch)
tree82773f442260e9881cd519f2519eb141a8e950b5 /phpBB/phpbb
parent16620ea3d2c51f59bbc08f0d004f48fe675ff239 (diff)
downloadforums-390a37492dbba7f39539207829eba5d10040b613.tar
forums-390a37492dbba7f39539207829eba5d10040b613.tar.gz
forums-390a37492dbba7f39539207829eba5d10040b613.tar.bz2
forums-390a37492dbba7f39539207829eba5d10040b613.tar.xz
forums-390a37492dbba7f39539207829eba5d10040b613.zip
[ticket/14876] Allows multibyte strings for exception messages
All exception messages are sanitized via type_caster::set_var() which is called with $multibyte = false. This commit allows to pass multibyte messages as well. PHPBB3-14876
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/event/kernel_exception_subscriber.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/event/kernel_exception_subscriber.php b/phpBB/phpbb/event/kernel_exception_subscriber.php
index 9d15f9370e..1ee771cfe7 100644
--- a/phpBB/phpbb/event/kernel_exception_subscriber.php
+++ b/phpBB/phpbb/event/kernel_exception_subscriber.php
@@ -61,7 +61,7 @@ class kernel_exception_subscriber implements EventSubscriberInterface
$exception = $event->getException();
$message = $exception->getMessage();
- $this->type_caster->set_var($message, $message, 'string', false, false);
+ $this->type_caster->set_var($message, $message, 'string', true, false);
if ($exception instanceof \phpbb\exception\exception_interface)
{