From: Michael R Sweet Date: Fri, 3 May 2019 18:35:04 +0000 (-0400) Subject: Support C-style character escapes in IPP files. X-Git-Tag: v2.3rc1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c178dec4864ae5ecf4086d8cc1d2db614d83eab;p=thirdparty%2Fcups.git Support C-style character escapes in IPP files. --- diff --git a/cups/ipp-file.c b/cups/ipp-file.c index a0b2bb0c38..0bba21d518 100644 --- a/cups/ipp-file.c +++ b/cups/ipp-file.c @@ -366,6 +366,20 @@ _ippFileReadToken(_ipp_file_t *f, /* I - File to read from */ f->linenum ++; DEBUG_printf(("1_ippFileReadToken: quoted LF, linenum=%d, pos=%ld", f->linenum, (long)cupsFileTell(f->fp))); } + else if (ch == 'a') + ch = '\a'; + else if (ch == 'b') + ch = '\b'; + else if (ch == 'f') + ch = '\f'; + else if (ch == 'n') + ch = '\n'; + else if (ch == 'r') + ch = '\r'; + else if (ch == 't') + ch = '\t'; + else if (ch == 'v') + ch = '\v'; } if (tokptr < tokend)