aboutsummaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2013-11-10 15:48:12 +0000
committerTatsuya Kinoshita <tats@debian.org>2013-11-10 15:48:34 +0000
commit39dc42ae1c6b1e0922d29b28c17f49aee31bd796 (patch)
tree5659e1a64c0413bc55e435f8d5f1af09ba8befb6 /debian
parentUse LFS_CFLAGS to support large file (closes: #493956) (diff)
downloadw3m-39dc42ae1c6b1e0922d29b28c17f49aee31bd796.tar.gz
w3m-39dc42ae1c6b1e0922d29b28c17f49aee31bd796.zip
New patch 270_refresh-url.patch to accept single quoted URL
Diffstat (limited to 'debian')
-rw-r--r--debian/patches/270_refresh-url.patch25
-rw-r--r--debian/patches/series1
2 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/270_refresh-url.patch b/debian/patches/270_refresh-url.patch
new file mode 100644
index 0000000..5d2d5a5
--- /dev/null
+++ b/debian/patches/270_refresh-url.patch
@@ -0,0 +1,25 @@
+Subject: Add support for single quoted meta refresh URL
+From: Paul Boekholt <p.boekholt@gmail.com>
+Bug: https://sourceforge.net/p/w3m/patches/53/
+
+--- w3m.orig/file.c 2007-05-23 17:06:05.000000000 +0200
++++ w3m/file.c 2008-09-06 08:46:00.000000000 +0200
+@@ -4240,15 +4240,15 @@ getMetaRefreshParam(char *q, Str *refres
+ while (*q) {
+ if (!strncasecmp(q, "url=", 4)) {
+ q += 4;
+- if (*q == '\"') /* " */
++ if (*q == '\"' || *q == '\'') /* " or ' */
+ q++;
+ r = q;
+ while (*r && !IS_SPACE(*r) && *r != ';')
+ r++;
+ s_tmp = Strnew_charp_n(q, r - q);
+
+- if (s_tmp->ptr[s_tmp->length - 1] == '\"') { /* "
+- */
++ if (s_tmp->ptr[s_tmp->length - 1] == '\"' /* " */
++ || s_tmp->ptr[s_tmp->length - 1] == '\'') { /* ' */
+ s_tmp->length--;
+ s_tmp->ptr[s_tmp->length] = '\0';
+ }
diff --git a/debian/patches/series b/debian/patches/series
index 910ff9a..07e78a0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -25,4 +25,5 @@
240_win64gc.patch
250_schemebug.patch
260_openssl.patch
+270_refresh-url.patch
900_ChangeLog.patch