From 2dd64984c8bf193b089ca026efa443d75d760332 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Tue, 21 Aug 2007 21:43:58 +0000 Subject: [PATCH] add Content-Disposition workaround (closes: #2048), bump release number SVN-Revision: 8458 --- utils/haserl/Makefile | 2 +- .../101-ignore_content_disposition.patch | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 utils/haserl/patches/101-ignore_content_disposition.patch diff --git a/utils/haserl/Makefile b/utils/haserl/Makefile index aa0413e25e..35eff9ff08 100644 --- a/utils/haserl/Makefile +++ b/utils/haserl/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=haserl PKG_VERSION:=0.8.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/haserl diff --git a/utils/haserl/patches/101-ignore_content_disposition.patch b/utils/haserl/patches/101-ignore_content_disposition.patch new file mode 100644 index 0000000000..46ac9a4303 --- /dev/null +++ b/utils/haserl/patches/101-ignore_content_disposition.patch @@ -0,0 +1,18 @@ +Index: haserl-0.8.0/src/haserl.c +=================================================================== +--- haserl-0.8.0.orig/src/haserl.c 2007-06-04 13:22:30.973146648 +0200 ++++ haserl-0.8.0/src/haserl.c 2007-06-04 13:22:31.039136616 +0200 +@@ -479,9 +479,12 @@ + line=LineToStr(&qs[offset], cl-offset); + if (strncasecmp(&qs[offset], "Content-Disposition", 19) != 0) { + /* hmm... content disposition was not where we expected it */ ++ /* Be kind to Opera 9.10 and just ignore this block */ ++ /* + PrintParseError ("Content-Disposition Missing", 0); + free(ct); +- return(-1); ++ */ ++ continue; + } + /* Found it, so let's go find "name=" */ + if (!(envname=strstr(&qs[offset], "name="))) { -- 2.30.2