]> granicus.if.org Git - icinga2/commitdiff
Fix escape sequence for backslashes
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 7 Jan 2015 07:56:52 +0000 (08:56 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 7 Jan 2015 07:56:52 +0000 (08:56 +0100)
fixes #8164

lib/config/config_lexer.ll

index 15efe4b1078c96a2c1e40ae5589a09f10355613a..3e238286ca3e79d130098d3a251f132643307eb7 100644 (file)
@@ -101,8 +101,8 @@ do {                                                        \
         */
        BOOST_THROW_EXCEPTION(ScriptError("Bad escape sequence found: " + String(yytext), *yylloc));
                                }
-
 <STRING>\\n                    { yyextra->m_LexBuffer << "\n"; }
+<STRING>\\\\                   { yyextra->m_LexBuffer << "\\"; }
 <STRING>\\t                    { yyextra->m_LexBuffer << "\t"; }
 <STRING>\\r                    { yyextra->m_LexBuffer << "\r"; }
 <STRING>\\b                    { yyextra->m_LexBuffer << "\b"; }