Revision: 668
http://cs-project.svn.sourceforge.net/cs-project/?rev=668&view=rev
Author: crazedsanity
Date: 2007-11-21 13:31:42 -0800 (Wed, 21 Nov 2007)
Log Message:
-----------
Cleaning note body.
Modified Paths:
--------------
trunk/includes/content/helpdesk.inc
Modified: trunk/includes/content/helpdesk.inc
===================================================================
--- trunk/includes/content/helpdesk.inc 2007-11-21 21:31:07 UTC (rev 667)
+++ trunk/includes/content/helpdesk.inc 2007-11-21 21:31:42 UTC (rev 668)
@@ -369,10 +369,11 @@
if(is_array($myNotes) && count($myNotes)) {
$baseRow = $page->templateRows['issueNotes'];
foreach($myNotes as $repArr) {
- $repArr['body'] = $bbCodeParser->parseString(cleanString($repArr['body'], "htmlentity_plus_brackets"));
+ $repArr['body'] = $bbCodeParser->parseString($repArr['body']);
+ $repArr['body'] = preg_replace('/\s\s/', ' ', $repArr['body']);
+ $repArr['body'] = preg_replace('/\S\s\s/', ' ', $repArr['body']);
+
$repArr['subject'] = cleanString($repArr['subject'], "htmlentity_plus_brackets");
- $repArr['subject'] = preg_replace('/\s\s/', ' ', $repArr['subject']);
- $repArr['subject'] = preg_replace('/\S\s\s/', ' ', $repArr['subject']);
$repArr['solutionIndicator'] = "";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|