diff options
| author | Paul Boekholt <p.boekholt@gmail.com> | 2013-11-10 15:29:51 +0000 | 
|---|---|---|
| committer | Tatsuya Kinoshita <tats@debian.org> | 2013-11-10 15:44:08 +0000 | 
| commit | d349b98025cad742e781a039e6426a39b4b2cc65 (patch) | |
| tree | aaa45c00c96efe2831c54927b2a73e6becaa661b | |
| parent | Merge from upstream on 2012-05-22 (diff) | |
| download | w3m-d349b98025cad742e781a039e6426a39b4b2cc65.tar.gz w3m-d349b98025cad742e781a039e6426a39b4b2cc65.zip | |
Add support for single quoted meta refresh URL
Bug: https://sourceforge.net/p/w3m/patches/53/
| -rw-r--r-- | file.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| @@ -4284,15 +4284,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';  	    } | 
