From b27e9870ecb1fbd0539a5445aaf72cebac6aab06 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Wed, 15 Aug 2012 12:45:57 +0000 Subject: [PATCH] realtime output for xcat command git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13514 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/lib/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-UI/lib/functions.php b/xCAT-UI/lib/functions.php index 19c6340d2..36ba1f178 100644 --- a/xCAT-UI/lib/functions.php +++ b/xCAT-UI/lib/functions.php @@ -111,11 +111,13 @@ function submit_request($req, $skipVerify, $opts_array){ // Flush output to browser if ($flush) { // Strip HTML tags from output + $str = preg_replace('/.*<\/errorcode>/', '', $str); if ($tmp = trim(strip_tags($str))) { // Format the output based on what was given for $flush_format if ($flush_format == "TDB") { format_TBD($tmp); } else { + $tmp = preg_replace('/\n\s*/', "\n", $tmp); // Print out output by default echo '
' . $tmp . '
'; ob_flush();