diff options
Diffstat (limited to 'application')
-rw-r--r-- | application/libraries/geshi.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/libraries/geshi.php b/application/libraries/geshi.php index f6796c9f6..c654fa2a7 100644 --- a/application/libraries/geshi.php +++ b/application/libraries/geshi.php @@ -3267,7 +3267,7 @@ class Geshi { * @todo BUGGY! Why? Why not build string and return? */ function parse_non_string_part($stuff_to_parse) { - $stuff_to_parse = ' ' . $this->hsc($stuff_to_parse); + $stuff_to_parse = $this->hsc($stuff_to_parse); // Highlight keywords $disallowed_before = "(?<![a-zA-Z0-9\$_\|\#;>|^&"; @@ -3576,7 +3576,7 @@ class Geshi { $stuff_to_parse = str_replace('<|', '<span', $stuff_to_parse); $stuff_to_parse = str_replace ( '|>', '</span>', $stuff_to_parse ); - return substr($stuff_to_parse, 1); + return $stuff_to_parse; } /** |