From b216a21b799a5c5746b10e68d948e0cd610e926b Mon Sep 17 00:00:00 2001
From: Kalle Olavi Niemitalo <kon@iki.fi>
Date: Wed, 30 Jan 2008 22:56:00 +0200
Subject: [PATCH] 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.
---
 src/config/opttypes.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/config/opttypes.c b/src/config/opttypes.c
index 5b0e25792..5ce9d0022 100644
--- a/src/config/opttypes.c
+++ b/src/config/opttypes.c
@@ -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)++;