Sunday, 15 April 2012

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

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

/* '"' or "'" or *LWS (we don't care) */
- if (url < end) {
+ if (url <= end) {
new_url = strndup(refresh, url - refresh);
if (new_url == NULL) {
dom_string_unref(content);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
===================================================================
--- html.c (Revision 13871)
+++ html.c (Arbeitskopie)
@@ -734,7 +734,7 @@
}

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

--
Greets,
Ole

No comments:

Post a Comment