]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
check for escape chars too
authorRupa Schomaker <rupa@rupa.com>
Thu, 30 Apr 2009 17:22:24 +0000 (17:22 +0000)
committerRupa Schomaker <rupa@rupa.com>
Thu, 30 Apr 2009 17:22:24 +0000 (17:22 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13211 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_lcr/mod_lcr.c

index a3d7f7f4ceae0b1909b54f9266aeab1286c4b67e..bb73f609ff0e78428c06aa78326d8c69d60cf8bc 100644 (file)
@@ -892,7 +892,7 @@ static switch_status_t lcr_load_config()
                                        custom_sql = sql_stream.data;
                                }
                                
-                               if (switch_string_var_check_const(custom_sql)) {
+                               if (switch_string_var_check_const(custom_sql) || switch_string_has_escaped_data(custom_sql)) {
                                        profile->custom_sql_has_vars = SWITCH_TRUE;
                                }
                                if (strstr(custom_sql, "%")) {