projects
/
asterisk/asterisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use ' instead of " for quoting in extensions.conf (bug #1872)
[asterisk/asterisk.git]
/
pbx
/
pbx_config.c
diff --git
a/pbx/pbx_config.c
b/pbx/pbx_config.c
index
990059b
..
e82c497
100755
(executable)
--- a/
pbx/pbx_config.c
+++ b/
pbx/pbx_config.c
@@
-113,8
+113,8
@@
static char *process_quotes_and_slashes(char *start, char find, char replace_wit
} else {
if (*start == '\\') {
inEscape = 1; /* Do not copy \ into the data */
} else {
if (*start == '\\') {
inEscape = 1; /* Do not copy \ into the data */
- } else if (*start == '\"') {
- inQuotes = 1-inQuotes; /* Do not copy " into the data */
+ } else if (*start == '\'') {
+ inQuotes = 1-inQuotes; /* Do not copy ' into the data */
} else {
/* Replace , with |, unless in quotes */
*dataPut++ = inQuotes ? *start : ((*start==find) ? replace_with : *start);
} else {
/* Replace , with |, unless in quotes */
*dataPut++ = inQuotes ? *start : ((*start==find) ? replace_with : *start);