]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Map , to p in phone numbers.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 17 Apr 2018 18:22:46 +0000 (14:22 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 17 Apr 2018 18:22:46 +0000 (14:22 -0400)
backend/ipp.c

index 29ef3d6e0624956cb467bbee26b321757701d475..61e706ec76e94448757c968a6a1bb9fb7e3899b9 100644 (file)
@@ -2798,7 +2798,9 @@ new_request(
         _httpDecodeURI(phone, keyword, sizeof(phone));
         for (ptr = phone; *ptr;)
        {
-         if (!strchr(allowed, *ptr))
+         if (*ptr == ',')
+           *ptr = 'p';
+         else if (!strchr(allowed, *ptr))
            _cups_strcpy(ptr, ptr + 1);
          else
            ptr ++;