From 8a74345f7e1a7fd8c26a5526c2cee968359ec703 Mon Sep 17 00:00:00 2001 From: Isaac Bennetch Date: Sat, 2 Jun 2018 19:46:02 -0400 Subject: [PATCH] Fix #14350, Uncaught TypeError with error reporting Signed-off-by: Isaac Bennetch --- libraries/classes/ErrorReport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/classes/ErrorReport.php b/libraries/classes/ErrorReport.php index 9b8868c1e2..b9e3e268a7 100644 --- a/libraries/classes/ErrorReport.php +++ b/libraries/classes/ErrorReport.php @@ -95,7 +95,7 @@ class ErrorReport } $exception = $_REQUEST['exception']; $exception["stack"] = $this->translateStacktrace($exception["stack"]); - list($uri, $scriptName) = $this->sanitizeUrl($exception["url"]); + list($uri, $scriptName) = $this->sanitizeUrl((string)$exception["url"]); $exception["uri"] = $uri; unset($exception["url"]);