r3175 Returning multistring ACK in ajax
authorDenis Yeldandi <dyeldandi@gmail.com>
Tue, 20 Oct 2009 08:49:02 +0000 (08:49 +0000)
committerDenis Yeldandi <dyeldandi@gmail.com>
Tue, 20 Oct 2009 08:49:02 +0000 (08:49 +0000)
ajax.php

index b7620ec4a211ef7518aa2f49c4a5c3d377f80fae..899dd99564ccedb927a56505fd98b7b3fc105141 100644 (file)
--- a/ajax.php
+++ b/ajax.php
@@ -19,7 +19,7 @@ switch ($_REQUEST['ac'])
                $code = str_replace ('\r', '', str_replace ('\n', "\n", $_REQUEST['code']));
                $result = getRackCode($code);
                if ($result['result'] == 'ACK')
                $code = str_replace ('\r', '', str_replace ('\n', "\n", $_REQUEST['code']));
                $result = getRackCode($code);
                if ($result['result'] == 'ACK')
-                       echo 'ACK';
+                       echo "ACK\n";
                else
                        echo "NAK\n".$result['load'];
        break;
                else
                        echo "NAK\n".$result['load'];
        break;