From ad2cf22fa4154e72f3a236cc4f5439e3bbdc0d92 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Tue, 5 Sep 2017 17:33:38 +0200 Subject: [PATCH] Added new format to string data --- pandora_console/include/ajax/module.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/ajax/module.php b/pandora_console/include/ajax/module.php index d97d51264f..c78c4d8adf 100755 --- a/pandora_console/include/ajax/module.php +++ b/pandora_console/include/ajax/module.php @@ -275,12 +275,16 @@ if ($get_module_detail) { // Detect string data with \n and convert to
's $datos = $row[$attr[0]]; - // Because this *SHIT* of print_table monster, I cannot format properly this cells - // so, eat this, motherfucker :)) - $datos = preg_replace("/\n/", "

", $datos); + $datos = preg_replace ('//', '>', $datos); + $datos = preg_replace ('/\n/i','
',$datos); + $datos = preg_replace ('/\s/i',' ',$datos); + $datos_format = "
"; + $datos_format .= $datos; + $datos_format .= "
"; // I dont why, but using index (value) method, data is automatically converted to html entities ¿? - $data[] = $datos; + $data[] = $datos_format; } elseif ($is_web_content_string) { //Fixed the goliat sends the strings from web