mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
config: Each backslash escapes only one character.
Previously, if you did this in elinks.conf: set document.dump.header = "\'\\" then str_rd() failed to detect the end of the string.
This commit is contained in:
parent
9becd108a8
commit
b216a21b79
@ -248,9 +248,9 @@ str_rd(struct option *opt, unsigned char **file, int *line)
|
||||
* thus we will never test for it in while () condition
|
||||
* and we will treat it just as '"', ignoring the
|
||||
* backslash itself. */
|
||||
if (isquote(str[1])) str++;
|
||||
else if (isquote(str[1])) str++;
|
||||
/* \\ means \. */
|
||||
if (str[1] == '\\') str++;
|
||||
else if (str[1] == '\\') str++;
|
||||
}
|
||||
|
||||
if (*str == '\n') (*line)++;
|
||||
|
Loading…
Reference in New Issue
Block a user