From: Tim Düsterhus Date: Sun, 27 Apr 2014 16:29:17 +0000 (+0200) Subject: Remove obsolete code in Highlighter.class.php X-Git-Tag: 2.0.6~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7fc21ff775be4558e9b8e966584ea4cf6a34a96c;p=GitHub%2FWoltLab%2FWCF.git Remove obsolete code in Highlighter.class.php see https://www.woltlab.com/forum/index.php/Thread/225478-In-manchen-Code-BBCodes-werden-Backslashes-entfernt/ --- diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/Highlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/Highlighter.class.php index d10f3fee3d..7f7b5a6275 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/Highlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/Highlighter.class.php @@ -227,12 +227,8 @@ abstract class Highlighter extends SingletonFactory { if (isset($matches[2])) $comment = $matches[2]; else $comment = ''; - // strip slashes - $string = str_replace("\\\"", "\"", $string); $hash = ''; if (!empty($comment)) { - $comment = str_replace("\\\"", "\"", $comment); - // create hash $hash = StringStack::pushToStringStack(''.StringUtil::encodeHTML($comment).'', 'highlighterComments'); }