From d978e24c81cc608e308869a2099970bb53e115a2 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 6 Aug 2006 22:42:58 +0200 Subject: GeSHi fixes This fixes a bug in GeSHi which adds an addtional newline (patch sent to upstream) and makes sure the code highlighting cache honors the purge request variable. darcs-hash:20060806204258-7ad00-56ad794b90b8ad38f62e8e4d9e430a8622636bc5.gz --- inc/geshi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/geshi.php') diff --git a/inc/geshi.php b/inc/geshi.php index 4e709fe22..c6755ea4a 100644 --- a/inc/geshi.php +++ b/inc/geshi.php @@ -1808,7 +1808,7 @@ class GeSHi $result .= $this->parse_non_string_part($stuff_to_parse); // Lop off the very first and last spaces - $result = substr($result, 1, strlen($result) - 1); + $result = substr($result, 1, -1); // Are we still in a string? if ($STRING_OPEN) { -- cgit v1.2.3