]> 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:16 +0000 (14:22 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 17 Apr 2018 18:22:16 +0000 (14:22 -0400)
backend/ipp.c

index 42b72d56bfdd9772813f38006bc87b079ef3b153..aa9d09a9fbdf933aca7411eeb5c3587c06f2c989 100644 (file)
@@ -2793,7 +2793,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 ++;