mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 10:33:13 +00:00
Use ' instead of " for quoting in extensions.conf (bug #1872)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3257 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -113,8 +113,8 @@ static char *process_quotes_and_slashes(char *start, char find, char replace_wit
|
|||||||
} else {
|
} else {
|
||||||
if (*start == '\\') {
|
if (*start == '\\') {
|
||||||
inEscape = 1; /* Do not copy \ into the data */
|
inEscape = 1; /* Do not copy \ into the data */
|
||||||
} else if (*start == '\"') {
|
} else if (*start == '\'') {
|
||||||
inQuotes = 1-inQuotes; /* Do not copy " into the data */
|
inQuotes = 1-inQuotes; /* Do not copy ' into the data */
|
||||||
} else {
|
} else {
|
||||||
/* Replace , with |, unless in quotes */
|
/* Replace , with |, unless in quotes */
|
||||||
*dataPut++ = inQuotes ? *start : ((*start==find) ? replace_with : *start);
|
*dataPut++ = inQuotes ? *start : ((*start==find) ? replace_with : *start);
|
||||||
|
Reference in New Issue
Block a user