Patch: render/html.c - fix http meta refresh url handling

m0n0 ole at monochrom.net
Sun Apr 15 22:00:42 BST 2012


Hello,

meta refresh handling is broken in the trunk ( at least for
http://www.monochrom.net). This small patch fixes the problem. Please
verify the correctness of the change for other cases than
http://www.monochrom.net ...

Here is the output of svn diff:

Index: html.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- html.c	(Revision 13871)
+++ html.c	(Arbeitskopie)
@@ -734,7 +734,7 @@
 	}

 	/* '"' or "'" or *LWS (we don't care) */
-	if (url < end) {
+	if (url <=3D end) {
 		new_url =3D strndup(refresh, url - refresh);
 		if (new_url =3D=3D NULL) {
 			dom_string_unref(content);



-- =

Greets,
Ole
-------------- next part --------------
A non-text attachment was scrubbed...
Name: render_html.c.diff
Type: text/x-patch
Size: 346 bytes
Desc: not available
Url : http://vlists.pepperfish.net/pipermail/netsurf-dev-netsurf-browser.or=
g/attachments/20120415/36918da6/render_html.c.bin


More information about the netsurf-dev mailing list