Browse code

DSM: mod_dlg: dialout headers \\r\\n -> \r\n

Stefan Sayer authored on 19/07/2010 10:54:14
Showing 1 changed files
... ...
@@ -235,6 +235,13 @@ EXEC_ACTION_START(DLGDialoutAction) {
235 235
   string hdrs; 
236 236
   GET_VARIABLE_OPTIONAL("_hdrs", hdrs);
237 237
   
238
+  if (hdrs.length()) {
239
+    size_t crpos;
240
+    while ((crpos=hdrs.find("\\r\\n")) != string::npos) {
241
+      hdrs.replace(crpos, 4, "\r\n");
242
+    }
243
+  }
244
+
238 245
 #undef GET_VARIABLE_MANDATORY
239 246
 #undef GET_VARIABLE_OPTIONAL
240 247