Hi,

 According to RFC 2045, we should be parsing MIME/HTTP header value parameter names in a case insensitive manner. To quote:
---
attribute := token
                  ; Matching of attributes
                  ; is ALWAYS case-insensitive.

     value := token / quoted-string

----

Kannel is generally well-behaved in this regard, but one seems to have gotten away. As usual it takes interfacing with a finicky application to catch this!

Find attached a very small patch (one line) to fix this problem.  


Index: gwlib/http.c
===================================================================
RCS file: /home/cvs/gateway/gwlib/http.c,v
retrieving revision 1.246
diff -u -r1.246 http.c
--- gwlib/http.c        23 Nov 2006 21:12:38 -0000      1.246
+++ gwlib/http.c        28 Nov 2006 12:08:44 -0000
@@ -3359,7 +3359,7 @@
         }
 
         /* is this the pair we look for? bail out then*/
-        if (octstr_compare(key, parameter) == 0) {
+        if (octstr_case_compare(key, parameter) == 0) {
             found++;        
             result = octstr_duplicate(val);
         }

Reply via email to