From: Gunnar Beutner Date: Wed, 7 Jan 2015 07:56:52 +0000 (+0100) Subject: Fix escape sequence for backslashes X-Git-Tag: v2.3.0~424 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2cb9f3011d1dd36715f6eddeceff78fed9d5be38;p=icinga2 Fix escape sequence for backslashes fixes #8164 --- diff --git a/lib/config/config_lexer.ll b/lib/config/config_lexer.ll index 15efe4b10..3e238286c 100644 --- a/lib/config/config_lexer.ll +++ b/lib/config/config_lexer.ll @@ -101,8 +101,8 @@ do { \ */ BOOST_THROW_EXCEPTION(ScriptError("Bad escape sequence found: " + String(yytext), *yylloc)); } - \\n { yyextra->m_LexBuffer << "\n"; } +\\\\ { yyextra->m_LexBuffer << "\\"; } \\t { yyextra->m_LexBuffer << "\t"; } \\r { yyextra->m_LexBuffer << "\r"; } \\b { yyextra->m_LexBuffer << "\b"; }