Author: rfm
Date: Fri Dec  9 09:45:35 2016
New Revision: 40258

URL: http://svn.gna.org/viewcvs/gnustep?rev=40258&view=rev
Log:
escape CR in xml

Modified:
    libs/webservices/trunk/GWSCoder.m

Modified: libs/webservices/trunk/GWSCoder.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/webservices/trunk/GWSCoder.m?rev=40258&r1=40257&r2=40258&view=diff
==============================================================================
--- libs/webservices/trunk/GWSCoder.m   (original)
+++ libs/webservices/trunk/GWSCoder.m   Fri Dec  9 09:45:35 2016
@@ -576,6 +576,11 @@
                escape = YES;
                break;
 
+              case '\r':
+                output += 5;
+                escape = YES;
+                break;
+
              default:
                /*
                 * For non-ascii characters, we can use &#nnnn; escapes
@@ -654,6 +659,14 @@
                    to[j++] = '&';
                    to[j++] = 'g';
                    to[j++] = 't';
+                   to[j++] = ';';
+                   break;
+
+                  case '\r':
+                   to[j++] = '&';
+                   to[j++] = '#';
+                   to[j++] = '1';
+                   to[j++] = '3';
                    to[j++] = ';';
                    break;
 


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to