From e15e458aecec96cb64094258239fc33da0e136a2 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Wed, 4 Feb 2015 13:10:08 +0100 Subject: [PATCH] Fixed problem in view of 'Tree view' with large data length. Reopen T#1748 (cherry picked from commit ded628da3ea6152dd0a36bfe0c42ad17e8afe799) --- pandora_console/include/ajax/module.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pandora_console/include/ajax/module.php b/pandora_console/include/ajax/module.php index f25f422fec..e722dac46a 100755 --- a/pandora_console/include/ajax/module.php +++ b/pandora_console/include/ajax/module.php @@ -161,12 +161,12 @@ if ($get_module_detail) { "data", "modules_format_data", "align" => "left", - "width" => 500), + "width" => "230px"), "Time" => array( "utimestamp", "modules_format_time", "align" => "left", - "width" => 500) + "width" => "50px") ); if ($selection_mode == "fromnow") { @@ -229,13 +229,14 @@ if ($get_module_detail) { // Detect string data with \n and convert to
's - $datos = preg_replace ('/\n/i','
',$row[$attr[0]]); - $datos = preg_replace ('/\s/i',' ',$datos); + $datos = $row[$attr[0]]; + //$datos = preg_replace ('/\n/i','
',$row[$attr[0]]); + //$datos = preg_replace ('/\s/i',' ',$datos); // Because this *SHIT* of print_table monster, I cannot format properly this cells // so, eat this, motherfucker :)) - $datos = "" . $datos . ""; + $datos = io_safe_input($datos); // I dont why, but using index (value) method, data is automatically converted to html entities ¿? $data[] = $datos;