BigCommerce - Hosted Ecommerce Software by Interspire

Interspire Forum

 
Go Back   Interspire Forum > Interspire Website Publisher 4.5 (ArticleLive) Community Forum > News and Product updates

Reply
 
Thread Tools Display Modes
  #1  
Old 09-09-2009, 12:20 AM
Gwilym (Interspire Staff) Gwilym (Interspire Staff) is offline
Administrator
 
Join Date: Jul 2008
Posts: 42
Default Fix for blank comments in 4.5.17

On some systems, new comments code introduced in 4.5.17 will cause the contents of comments to display as empty. This will be fixed in 4.5.18.

For an immediate fix, a new version of /admin/includes/classes/class.helper.php is attached to this post which corrects the issue and may be applied to your site.

For those who prefer to patch via diffs, the following diff may be used:

Code:
--- class.helper.php	Wed Sep  9 09:17:59 2009
+++ class.helper.php	Wed Sep  9 09:17:59 2009
@@ -1136,7 +1136,7 @@
 		$output = $source;
 
 		//	can't insert  straight away because we do an htmlencode later, make a random placeholder and use that
-		$wordbreak = '{WORDBREAK'. rand(10000, 99999) .'}';
+		$wordbreak = 'WBR' . rand(100000, 999999);
 		$chunkLen = 5;
 
 		//	chunk comments up into blocks of $chunkLen chars for word-breaking
Attached Files
File Type: zip r2805.zip (12.6 KB, 3 views)
__________________
Gwilym Evans
Software Engineer
Interspire Pty. Ltd.
Phone (AUS): +612 9262-7770
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump