From f3babbb945ec54f55969e16191f3f2e9a13a2f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 30 Aug 2016 14:48:42 +0200 Subject: [PATCH] Correctly calculate string length MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #12517 Signed-off-by: Michal Čihař --- libraries/Linter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/Linter.php b/libraries/Linter.php index 422141e615..ed53ce2187 100644 --- a/libraries/Linter.php +++ b/libraries/Linter.php @@ -51,7 +51,7 @@ class Linter // (which is actually a new line) aren't going to be processed at // all. $len = ($str instanceof UtfString) ? - $str->length() : strlen($len); + $str->length() : strlen($str); $lines = array(0); for ($i = 0; $i < $len; ++$i) {