2011-02-23 Ramon Novoa <rnovoa@artica.es>

* include/functions_ui.php: Call safe_output instead of
	  safe_output_html.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3991 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2011-02-23 10:26:56 +00:00
parent 5eea5cd7b5
commit 6e16725b57
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-02-23 Ramon Novoa <rnovoa@artica.es>
* include/functions_ui.php: Call safe_output instead of
safe_output_html.
2011-02-22 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* godmode/reporting/visual_console_builder.php: Small icons created

View File

@ -40,7 +40,7 @@ function printTruncateText($text, $numChars = 25, $showTextInAToopTip = true, $r
}
}
$text = safe_output_html($text);
$text = safe_output($text);
if ((strlen($text)) > ($numChars)) {
$half_lenght = intval(($numChars - 3) / 2); // '/2' because [...] is in the middle of the word.
$truncateText2 = mb_strimwidth($text, (strlen($text) - $half_lenght), strlen($text));