noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 09/10: Task #1044 - Implementation de Test Te


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 09/10: Task #1044 - Implementation de Test Test ajax
Date: Thu, 27 Nov 2014 22:55:09 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 2322d37a22ef69e64468137c1f49e4d35b3339a4
Author: Dany De Bontridder <address@hidden>
Date:   Thu Nov 27 23:52:54 2014 +0100

    Task #1044 - Implementation de Test
    Test ajax
---
 html/ajax_poste.php |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/html/ajax_poste.php b/html/ajax_poste.php
index faa61f2..9dd5c9c 100644
--- a/html/ajax_poste.php
+++ b/html/ajax_poste.php
@@ -188,12 +188,19 @@ case "sf":
     $html=$r;
     break;
 }
-$html=escape_xml($html);
-header('Content-type: text/xml; charset=UTF-8');
+$xml=escape_xml($html);
+if (headers_sent() && DEBUG ) {
+    echo $html;
+}
+else 
+{
+    header('Content-type: text/xml; charset=UTF-8');
+}
+    
 echo <<<EOF
 <?xml version="1.0" encoding="UTF-8"?>
 <data>
 <ctl>$ctl</ctl>
-<code>$html</code>
+<code>$xml</code>
 </data>
 EOF;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]