diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-06-24 14:29:00 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-06-25 22:08:40 +0200 |
commit | a39ce5d20d540b2a12a36ad5cf5f058999fcb4bf (patch) | |
tree | 53aa50dbe17ce3783d21cbbfe79e2d9536656098 /test | |
parent | 06f9083bdeb085b7b9de762fa029f6519e142dbe (diff) |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/html/Makefile.am | 1 | ||||
-rw-r--r-- | test/html/render/meta-refresh-0-no-url.html | 10 | ||||
-rw-r--r-- | test/html/render/meta-refresh-0-no-url.ref.html | 9 |
3 files changed, 20 insertions, 0 deletions
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 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test meta refresh 0 without URL</title> + <meta http-equiv="Refresh" content="0"> + </head> + <body> + <p>Should be ignored.</p> + </body> +</html> 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 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test meta refresh 0 without URL</title> + </head> + <body> + <p>Should be ignored.</p> + </body> +</html> |