[Freeswitch-svn] [commit] r7944 - freeswitch/trunk/src/mod/applications/mod_enum
Freeswitch SVN
mikej at freeswitch.org
Wed Mar 19 23:36:31 EDT 2008
Author: mikej
Date: Wed Mar 19 23:36:30 2008
New Revision: 7944
Modified:
freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c
Log:
return mistakenly removed code.
Modified: freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c Wed Mar 19 23:36:30 2008
@@ -285,6 +285,7 @@
char *service = NULL;
char *regex = NULL;
char *replace = NULL;
+ char *ptr;
int argc = 0;
char *argv[4] = { 0 };
int n;
@@ -333,6 +334,12 @@
goto xperr;
}
+ for (ptr = replace; ptr && *ptr; ptr++) {
+ if (*ptr == '\\') {
+ *ptr = '$';
+ }
+ }
+
if (flags && service && regex && replace) {
switch_regex_t *re = NULL;
int proceed = 0, ovector[30];
More information about the Freeswitch-svn
mailing list