either my escaper is to naive, or something is wonky with buffer_add_char
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 3 Aug 2005 03:34:18 +0000 (03:34 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 3 Aug 2005 03:34:18 +0000 (03:34 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1592 dcc99617-32d9-48b4-a31d-7c20da2025e4

OpenSRF/src/gateway/fieldmapper-c-xml-out.pl

index dcf880f..6724ff5 100755 (executable)
@@ -136,10 +136,13 @@ void _rest_xml_output(growing_buffer* buf, object* obj, char * fm_class, int fm_
                        buffer_fadd(buf, "<%s>false</%s>",tag,tag);
 
        } else if (obj->is_string) {
-               if (notag)
-                       buffer_add(buf,_escape_xml(obj->string_data));
-               else
-                       buffer_fadd(buf,"<%s>%s</%s>",tag,_escape_xml(obj->string_data),tag);
+               if (notag) {
+                       //buffer_add(buf,_escape_xml(obj->string_data));
+                       buffer_add(buf,obj->string_data);
+               } else {
+                       //buffer_fadd(buf,"<%s>%s</%s>",tag,_escape_xml(obj->string_data),tag);
+                       buffer_fadd(buf,"<%s>%s</%s>",tag,obj->string_data,tag);
+               }
 
        } else if(obj->is_number) {
                if (notag)