r25376 - in /packages/unstable/libproxy/debian: changelog patches/ patches/01_pac_http.patch

joss at users.alioth.debian.org joss at users.alioth.debian.org
Fri Oct 15 07:13:35 UTC 2010


Author: joss
Date: Fri Oct 15 07:13:33 2010
New Revision: 25376

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=25376
Log:
01_pac_http.patch: new patch from Julien Blache. Don’t assume HTTP 
header names are case sensitive. Closes: #600196.

Added:
    packages/unstable/libproxy/debian/patches/
    packages/unstable/libproxy/debian/patches/01_pac_http.patch
Modified:
    packages/unstable/libproxy/debian/changelog

Modified: packages/unstable/libproxy/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/libproxy/debian/changelog?rev=25376&op=diff
==============================================================================
--- packages/unstable/libproxy/debian/changelog [utf-8] (original)
+++ packages/unstable/libproxy/debian/changelog [utf-8] Fri Oct 15 07:13:33 2010
@@ -1,8 +1,13 @@
 libproxy (0.3.1-2) UNRELEASED; urgency=low
 
+  [ Emilio Pozuelo Monfort ]
   * debian/patches/libproxy_link_against_libdl.patch:
     - Removed, configure.ac already adds the correct check so this is not
       needed anymore.
+
+  [ Josselin Mouette ]
+  * 01_pac_http.patch: new patch from Julien Blache. Don’t assume HTTP 
+    header names are case sensitive. Closes: #600196.
 
  -- Emilio Pozuelo Monfort <pochu at debian.org>  Mon, 14 Dec 2009 16:32:31 +0100
 

Added: packages/unstable/libproxy/debian/patches/01_pac_http.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/libproxy/debian/patches/01_pac_http.patch?rev=25376&op=file
==============================================================================
--- packages/unstable/libproxy/debian/patches/01_pac_http.patch (added)
+++ packages/unstable/libproxy/debian/patches/01_pac_http.patch [utf-8] Fri Oct 15 07:13:33 2010
@@ -1,0 +1,25 @@
+diff -ru orig/libproxy-0.3.1/src/lib/pac.c libproxy-0.3.1/src/lib/pac.c
+--- orig/libproxy-0.3.1/src/lib/pac.c	2009-09-29 21:52:50.000000000 +0200
++++ libproxy-0.3.1/src/lib/pac.c	2010-10-14 16:13:58.273700566 +0200
+@@ -19,6 +19,7 @@
+ 
+ #include <unistd.h>
+ #include <string.h>
++#include <strings.h>
+ #include <time.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+@@ -145,11 +146,11 @@
+ 		/* Check for correct mime type and content length */
+ 		while (strcmp(line, "\r")) {
+ 			/* Check for content type */
+-			if (strstr(line, "Content-Type: ") == line && strstr(line, PAC_MIME_TYPE))
++			if (strncasecmp(line, "Content-Type:", strlen("Content-Type:")) == 0 && strstr(line, PAC_MIME_TYPE))
+ 				correct_mime_type = true;
+ 
+ 			/* Check for content length */
+-			else if (strstr(line, "Content-Length: ") == line)
++			else if (strncasecmp(line, "Content-Length:", strlen("Content-Length:")) == 0)
+ 				content_length = atoi(line + strlen("Content-Length: "));
+ 
+ 			/* Get new line */




More information about the pkg-gnome-commits mailing list