From a39ce5d20d540b2a12a36ad5cf5f058999fcb4bf Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Mon, 24 Jun 2024 14:29:00 +0200 Subject: Ignore meta refresh content without URL The content="0" attribute was wrongly parsed as the URL "0". The change makes the parser ignore a redirect with a content value that doesn't have ";" or "url=" after the delay number. Fixes: https://github.com/dillo-browser/dillo/issues/204 --- test/html/Makefile.am | 1 + test/html/render/meta-refresh-0-no-url.html | 10 ++++++++++ test/html/render/meta-refresh-0-no-url.ref.html | 9 +++++++++ 3 files changed, 20 insertions(+) create mode 100644 test/html/render/meta-refresh-0-no-url.html create mode 100644 test/html/render/meta-refresh-0-no-url.ref.html (limited to 'test') diff --git a/test/html/Makefile.am b/test/html/Makefile.am index e96e9f15..4e55d8f8 100644 --- a/test/html/Makefile.am +++ b/test/html/Makefile.am @@ -23,6 +23,7 @@ TESTS = \ render/max-width-div-clamp.html \ render/max-width-html.html \ render/max-width-nested-div.html \ + render/meta-refresh-0-no-url.html \ render/min-width-body.html \ render/min-width-div-extend.html \ render/min-width-div.html \ diff --git a/test/html/render/meta-refresh-0-no-url.html b/test/html/render/meta-refresh-0-no-url.html new file mode 100644 index 00000000..7af8f961 --- /dev/null +++ b/test/html/render/meta-refresh-0-no-url.html @@ -0,0 +1,10 @@ + + + + Test meta refresh 0 without URL + + + +

Should be ignored.

+ + diff --git a/test/html/render/meta-refresh-0-no-url.ref.html b/test/html/render/meta-refresh-0-no-url.ref.html new file mode 100644 index 00000000..12ac12bc --- /dev/null +++ b/test/html/render/meta-refresh-0-no-url.ref.html @@ -0,0 +1,9 @@ + + + + Test meta refresh 0 without URL + + +

Should be ignored.

+ + -- cgit v1.2.3