diff --git a/xCAT-UI/lib/functions.php b/xCAT-UI/lib/functions.php index 219483f9f..c74ffab0c 100644 --- a/xCAT-UI/lib/functions.php +++ b/xCAT-UI/lib/functions.php @@ -90,7 +90,8 @@ function submit_request($req, $skipVerify){ // Look for serverdone response $fullpattern = '/\s*\s*<\/serverdone>\s*<\/xcatresponse>/'; $mixedpattern = '/\s*<\/serverdone>.*<\/xcatresponse>/'; - if(preg_match($mixedpattern,$response)) { + $recentpattern = '/<\/xcatresponse>/'; + if(preg_match($recentpattern,$str) && preg_match($mixedpattern,$response)) { // Transaction is done, // Package up XML and return it // Remove the serverdone response and put an xcat tag around the rest