aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2013-11-10 15:45:03 +0000
committerTatsuya Kinoshita <tats@debian.org>2013-11-10 15:45:03 +0000
commit1d8d8d4e2a760b4d62aa2ad62ec402c398b1e8e4 (patch)
tree91f8755384f43ce1b070d56cfa415bafd8be9996
parentMerge branch 'bug/openssl' (diff)
parentAdd support for single quoted meta refresh URL (diff)
downloadw3m-1d8d8d4e2a760b4d62aa2ad62ec402c398b1e8e4.tar.gz
w3m-1d8d8d4e2a760b4d62aa2ad62ec402c398b1e8e4.zip
Merge branch 'bug/refresh-url'
-rw-r--r--file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/file.c b/file.c
index 6f4d5b8..1e363d0 100644
--- a/file.c
+++ b/file.c
@@ -4341,15 +4341,15 @@ getMetaRefreshParam(char *q, Str *refresh_uri)
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';
}