Remove obsolete code in Highlighter.class.php
authorTim Düsterhus <duesterhus@woltlab.com>
Sun, 27 Apr 2014 16:29:17 +0000 (18:29 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Sun, 27 Apr 2014 16:29:17 +0000 (18:29 +0200)
see https://www.woltlab.com/forum/index.php/Thread/225478-In-manchen-Code-BBCodes-werden-Backslashes-entfernt/

wcfsetup/install/files/lib/system/bbcode/highlighter/Highlighter.class.php

index d10f3fee3ddf172e75dd01b948ef4a60ecb58f41..7f7b5a6275ef100c13ee646354abdc88ac2b6d9c 100644 (file)
@@ -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('<span class="hlComments">'.StringUtil::encodeHTML($comment).'</span>', 'highlighterComments');
                                }