From fe396410894f9fcf430e31216312f70db800d96e Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 17 Dec 2008 19:28:26 +0000 Subject: Update Kohana code to r3799 from their svn head. All tests pass. Resolved upstream tickets: http://dev.kohanaphp.com/ticket/972 Command: svn merge -c19275 vendor/kohana/modified/kohana trunk/kohana --- kohana/helpers/html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kohana/helpers/html.php') diff --git a/kohana/helpers/html.php b/kohana/helpers/html.php index b11ea755..d1f09612 100644 --- a/kohana/helpers/html.php +++ b/kohana/helpers/html.php @@ -307,7 +307,7 @@ class html_Core { $length = strlen($suffix); - if (substr_compare($href, $suffix, -$length, $length, FALSE) !== 0) + if ( $length > 0 AND substr_compare($href, $suffix, -$length, $length, FALSE) !== 0) { // Add the defined suffix $href .= $suffix; -- cgit v1.2.3