From ded628da3ea6152dd0a36bfe0c42ad17e8afe799 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 --- 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 7ff78d57fe..2671a34288 100644 --- a/pandora_console/include/ajax/module.php +++ b/pandora_console/include/ajax/module.php @@ -169,12 +169,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") { @@ -237,13 +237,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;