added \ escaping
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 7 Jun 2006 14:31:36 +0000 (14:31 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 7 Jun 2006 14:31:36 +0000 (14:31 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@734 9efc2488-bf62-4759-914b-345cdb29e865

src/utils/utils.c

index d2d97e0..aa9d494 100644 (file)
@@ -342,6 +342,12 @@ char* uescape( const char* string, int size, int full_escape ) {
                                                OSRF_BUFFER_ADD_CHAR(buf, 'r');
                                                break;
 
+                                       case '\\':
+                                               OSRF_BUFFER_ADD_CHAR(buf, '\\');
+                                               OSRF_BUFFER_ADD_CHAR(buf, '\\');
+                                               break;
+
+
                                        default:
                                                OSRF_BUFFER_ADD_CHAR(buf, c);
                                }