decidim-dev 0.31.7 → 0.31.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/decidim/dev/dummy_resources_controller.rb +3 -1
- data/app/packs/stylesheets/decidim/dev/_rack_profiler.scss +10 -0
- data/config/locales/eu.yml +6 -6
- data/config/locales/gl.yml +15 -1
- data/config/rubocop/decidim-linters/configuration.yml +41 -0
- data/config/rubocop/rspec/configuration.yml +1 -0
- data/lib/decidim/dev/admin_engine.rb +3 -0
- data/lib/decidim/dev/assets/empty_file.png +0 -0
- data/lib/decidim/dev/assets/malformed_svg_unclosed_element.svg +7 -0
- data/lib/decidim/dev/assets/malicious_svg_alt_glyph_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_animate_color_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_animation.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_animation_attribute_names.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_animation_attribute_names_event_handler.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_animation_attribute_names_list.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_animation_color_profile.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_animation_data_uri.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_animation_data_uri_parameter.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_animation_fill.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_animation_gradient_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_animation_style.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_animation_values.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_attributename_case.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_backslash_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_base.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_base_child_element.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_base_protocol_relative.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_clip_path_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_color_profile_element_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_color_profile_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_comment_first.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_backslash_url.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_comment_in_url.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_empty_string_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_empty_string_single_quote_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_escaped_quote_unquoted_value_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_escaped_quote_unquoted_value_single_quote_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_hex_escape_crlf_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_hex_escape_crlf_single_quote_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_hex_escape_newline_external_reference.svg +2 -0
- data/lib/decidim/dev/assets/malicious_svg_css_hex_escape_newline_single_quote_external_reference.svg +2 -0
- data/lib/decidim/dev/assets/malicious_svg_css_image_function.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_image_set.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_image_set_escaped_quote_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_image_set_nested_parentheses.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_image_set_nested_url_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_image_set_quote_parentheses_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_string_newline_external_reference.svg +2 -0
- data/lib/decidim/dev/assets/malicious_svg_css_url_opposite_quote_nested_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_url_opposite_quote_nested_script.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_cursor.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_cursor_attribute.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_data_uri_base64_not_last_parameter.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_data_uri_base64_parameter_lookalike.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_data_uri_declared_encoding.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_data_uri_deep_nested.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_data_uri_fragment.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_data_uri_leading_space.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_data_uri_malformed_base64.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_data_uri_malformed_document.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_data_uri_max_depth_exceeded.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_data_uri_nested.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_data_uri_parameter.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_data_uri_percent_decoded_base64.svg +5 -0
- data/lib/decidim/dev/assets/malicious_svg_entity.svg +5 -0
- data/lib/decidim/dev/assets/malicious_svg_entity_parameter.svg +7 -0
- data/lib/decidim/dev/assets/malicious_svg_external_animation.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_external_animation_missing_target.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_external_animation_target.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_external_feimage.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_external_image.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_external_use.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_fill_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_filter_element_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_filter_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_font_face_uri_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_foreign_object.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_gradient_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_handler.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_marker_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_marker_start_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_mask_attribute.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_mpath_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_pattern_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_protocol_relative_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_script.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_stroke_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_style_comment_string.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_style_import.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_style_import_string.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_style_url_escape.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_style_url_string.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_stylesheet_pi.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_text_path_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_tref_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_uri.svg +1 -0
- data/lib/decidim/dev/assets/spoofed_image.png +0 -0
- data/lib/decidim/dev/assets/spoofed_image_binary.png +1 -0
- data/lib/decidim/dev/assets/spoofed_image_html.png +5 -0
- data/lib/decidim/dev/assets/spoofed_svg_comment_first.svg +1 -0
- data/lib/decidim/dev/assets/spoofed_svg_xml.svg +2 -0
- data/lib/decidim/dev/assets/test.avif +0 -0
- data/lib/decidim/dev/assets/test.gif +0 -0
- data/lib/decidim/dev/assets/test.heic +0 -0
- data/lib/decidim/dev/assets/test.svg +1 -0
- data/lib/decidim/dev/assets/test_animation.svg +1 -0
- data/lib/decidim/dev/assets/test_animation_attribute_names_list.svg +7 -0
- data/lib/decidim/dev/assets/test_animation_data_uri_parameter.svg +7 -0
- data/lib/decidim/dev/assets/test_animation_link.svg +7 -0
- data/lib/decidim/dev/assets/test_animation_percent_encoded_fragment.svg +7 -0
- data/lib/decidim/dev/assets/test_animation_presentation_reference.svg +8 -0
- data/lib/decidim/dev/assets/test_comment_first.svg +2 -0
- data/lib/decidim/dev/assets/test_complex.svg +12 -0
- data/lib/decidim/dev/assets/test_css_image_set_nested_relative_url.svg +1 -0
- data/lib/decidim/dev/assets/test_css_references.svg +14 -0
- data/lib/decidim/dev/assets/test_css_unclosed_comment.svg +2 -0
- data/lib/decidim/dev/assets/test_css_url_opposite_quote.svg +12 -0
- data/lib/decidim/dev/assets/test_data_uri_declared_encoding.svg +5 -0
- data/lib/decidim/dev/assets/test_data_uri_fragment.svg +1 -0
- data/lib/decidim/dev/assets/test_data_uri_max_depth.svg +1 -0
- data/lib/decidim/dev/assets/test_data_uri_parameters.svg +1 -0
- data/lib/decidim/dev/assets/test_data_uri_percent_decoded_base64.svg +6 -0
- data/lib/decidim/dev/assets/test_doctype_name_on_next_line.svg +4 -0
- data/lib/decidim/dev/assets/test_entity_in_comment.svg +8 -0
- data/lib/decidim/dev/assets/test_entity_in_processing_instruction.svg +7 -0
- data/lib/decidim/dev/assets/test_link_data_document.svg +9 -0
- data/lib/decidim/dev/assets/test_link_non_web_scheme.svg +7 -0
- data/lib/decidim/dev/assets/test_long_comment_first.svg +2 -0
- data/lib/decidim/dev/assets/test_percent_encoded_fragment.svg +7 -0
- data/lib/decidim/dev/assets/test_percent_encoded_multibyte_reference.svg +7 -0
- data/lib/decidim/dev/assets/test_percent_encoded_multibyte_reference_mixed.svg +8 -0
- data/lib/decidim/dev/assets/test_presentation_attribute_references.svg +13 -0
- data/lib/decidim/dev/assets/test_processing_instruction_first.svg +3 -0
- data/lib/decidim/dev/assets/test_reference_elements_resolved_in_document.svg +26 -0
- data/lib/decidim/dev/assets/test_references.svg +12 -0
- data/lib/decidim/dev/assets/test_relative_base.svg +2 -0
- data/lib/decidim/dev/assets/test_relative_image_function.svg +8 -0
- data/lib/decidim/dev/assets/test_root_relative_reference.svg +7 -0
- data/lib/decidim/dev/assets/test_style_text.svg +9 -0
- data/lib/decidim/dev/assets/video.mp4 +0 -0
- data/lib/decidim/dev/auth_engine.rb +3 -0
- data/lib/decidim/dev/engine.rb +3 -0
- data/lib/decidim/dev/rubocop/cop/decidim/enforce_permission_to.rb +459 -0
- data/lib/decidim/dev/rubocop/cop/decidim/organization_scoped_finder.rb +461 -0
- data/lib/decidim/dev/test/base_spec_helper.rb +4 -0
- data/lib/decidim/dev/test/rspec_support/capybara.rb +54 -0
- data/lib/decidim/dev/test/rspec_support/helpers.rb +14 -1
- data/lib/decidim/dev/version.rb +1 -1
- data/rubocop-decidim.yml +1 -0
- metadata +150 -14
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><circle cx="8" cy="8" r="8" fill="#000"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><circle cx="8" cy="8" r="8" fill="#000"><animate attributeName="cx" values="4;8;12" dur="1s" repeatCount="indefinite"/></circle></svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- An animation whose list of attribute names is separated by whitespace, assigning
|
|
3
|
+
references which are resolved against the document itself. -->
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16">
|
|
5
|
+
<defs><pattern id="paint"><rect width="16" height="16"/></pattern></defs>
|
|
6
|
+
<image width="16" height="16"><animate attributeNames="href xlink:href" values="#paint;#paint" dur="1s"/></image>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- An animation assigning a single value which contains a semicolon as part of the
|
|
3
|
+
parameters of the MIME type of a data reference, so the value is not split and the
|
|
4
|
+
nested document is validated. -->
|
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
6
|
+
<image width="16" height="16"><animate attributeName="href" to="data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Ccircle%20r%3D%221%22/%3E%3C/svg%3E" dur="1s" fill="freeze"/></image>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- Animations assigning external links to "a" elements, which do not load any resource when the document is rendered, both modifying their parent element and referencing the target element with their own "href". -->
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16">
|
|
4
|
+
<a><set attributeName="href" to="https://example.org"/><text y="8">Example</text></a>
|
|
5
|
+
<a id="link"><text y="15">Other</text></a>
|
|
6
|
+
<g><animate href="#link" attributeName="href" values="#none;https://other.example.org" dur="1s" fill="freeze"/></g>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- An animation whose target and whose list of values use a percent-encoded fragment,
|
|
3
|
+
which is resolved to the element of the document with the decoded identifier. -->
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16">
|
|
5
|
+
<defs><pattern id="paint"><rect width="16" height="16"/></pattern></defs>
|
|
6
|
+
<image width="16" height="16"><animate xlink:href="#%70%61%69%6E%74" attributeName="href" values="#%70%61%69%6E%74;#%70%61%69%6E%74" dur="1s"/></image>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- An animation assigning a presentation attribute whose reference resolves to an
|
|
3
|
+
element of the document itself, which is fetched only when the animation reaches
|
|
4
|
+
it, so the document is accepted. -->
|
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
6
|
+
<defs><pattern id="paint"><rect width="16" height="16"/></pattern></defs>
|
|
7
|
+
<rect width="16" height="16"><animate attributeName="fill" values="url(#paint);url(#paint)" dur="1s"/></rect>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
+
<!-- A logo exported by a vector editor, using a style sheet, symbol reuse and an embedded raster image. -->
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16">
|
|
5
|
+
<style>.logo { fill: #000; } .dot { fill: url(#dot); }</style>
|
|
6
|
+
<defs>
|
|
7
|
+
<circle id="dot" cx="8" cy="8" r="8"/>
|
|
8
|
+
</defs>
|
|
9
|
+
<use xlink:href="#dot" class="logo" style="fill:url(#dot);"/>
|
|
10
|
+
<image href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" width="1" height="1"/>
|
|
11
|
+
<a xlink:href="https://example.org"><text y="15">offset=0; one=1</text></a>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.logo { mask-image: image-set( url(#mask) 1x, url(local.svg) 2x); }</style><circle class="logo" cx="8" cy="8" r="8" fill="#000"/></svg>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- A document whose CSS references are resolved against the document itself:
|
|
3
|
+
the paint server and the mask, which are not fetched as the properties
|
|
4
|
+
accepting them only refer to elements of the document, and the text which
|
|
5
|
+
only looks like a reference because it is inside a string which is not an
|
|
6
|
+
argument of a function loading a resource. -->
|
|
7
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
8
|
+
<defs>
|
|
9
|
+
<pattern id="paint"><rect width="16" height="16"/></pattern>
|
|
10
|
+
<mask id="mask"><rect width="16" height="16" fill="#fff"/></mask>
|
|
11
|
+
</defs>
|
|
12
|
+
<style>.logo { fill: url(#paint); mask: url(#mask); content: "image-set(\"https://example.org/logo.png\")"; }</style>
|
|
13
|
+
<circle class="logo" cx="8" cy="8" r="8" mask="url(#mask)"/>
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<!-- A style sheet whose comment is not terminated, so it extends to the end of the style sheet. The multibyte characters make the byte position of the scanner differ from the length of the string. -->
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>éééééééééééééééééééé /*</style><rect width="16" height="16"/></svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- A style sheet whose URL values contain the quote which does not delimit the
|
|
3
|
+
string, so the whole string is read as the reference: the namespace of the
|
|
4
|
+
nested document is written with single quotes inside a double quoted URL, and
|
|
5
|
+
with double quotes inside a single quoted one. Cutting the value at the other
|
|
6
|
+
quote would validate an incomplete document instead of the one which is
|
|
7
|
+
rendered. The last value is a single reference which is resolved against the
|
|
8
|
+
document, as the quotes inside it are part of the path and not delimiters. -->
|
|
9
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
10
|
+
<style>.logo { background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle%20r='8'/%3E%3C/svg%3E"); } .other { background: url('data:image/svg+xml,%3Csvg%20xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle%20r="8"/%3E%3C/svg%3E'); } .text { background: url("x 'https://example.org/only-part-of-the-path'"); }</style>
|
|
11
|
+
<circle class="logo" cx="8" cy="8" r="8" fill="#000"/>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- An inline data reference which declares its own encoding. Its contents are
|
|
3
|
+
decoded as bytes, so the declared encoding is still read when they are
|
|
4
|
+
parsed as a nested document. -->
|
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16" href="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22ISO-8859-1%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ctext%3E%E9%3C%2Ftext%3E%3C%2Fsvg%3E"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16" href="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Ccircle%20r%3D%221%22/%3E%3C/svg%3E#the-fragment-is-not-part-of-the-data"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16" href="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PGltYWdlIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgaHJlZj0iZGF0YTppbWFnZS9zdmcreG1sO2Jhc2U2NCxQSE4yWnlCNGJXeHVjejBpYUhSMGNEb3ZMM2QzZHk1M015NXZjbWN2TWpBd01DOXpkbWNpSUhacFpYZENiM2c5SWpBZ01DQXhOaUF4TmlJK1BHbHRZV2RsSUhkcFpIUm9QU0l4TmlJZ2FHVnBaMmgwUFNJeE5pSWdhSEpsWmowaVpHRjBZVHBwYldGblpTOXpkbWNyZUcxc08ySmhjMlUyTkN4UVNFNHlXbmxDTkdKWGVIVmplakJwWVVoU01HTkViM1pNTTJRelpIazFNMDE1TlhaamJXTjJUV3BCZDAxRE9YcGtiV05wU1VoYWNGcFlaRU5pTTJjNVNXcEJaMDFEUVhoT2FVRjRUbWxKSzFCSGJIUlpWMlJzU1Voa2NGcElVbTlRVTBsNFRtbEpaMkZIVm5CYU1tZ3dVRk5KZUU1cFNXZGhTRXBzV21vd2FWcEhSakJaVkhCd1lsZEdibHBUT1hwa2JXTnlaVWN4YzA4eVNtaGpNbFV5VGtONFVWTkZOSGxYYm14RFRrZEtXR1ZJVm1wbGFrSndXVlZvVTAxSFRrVmlNMXBOVFRKUmVscElhekZOTURFMVRsaGFhbUpYVGpKVVYzQkNaREF4UkU5WWNHdGlWMDV3VTFWb1lXTkdjRmxhUlU1cFRUSmpOVk5YY0VKYU1ERkVVVmhvVDJGVlJqUlViV3hLU3pGQ1NHSklVbHBXTWxKelUxVm9hMk5HY0VsVmJUbFJWVEJzTkZSdGJFcGFNa1pJVm01Q1lVMXRaM2RWUms1S1pVVTFjRk5YWkdoVFJYQnpWMjF2ZDJGV2NFaFNha0phVmtoQ2QxbHNaRWRpYkhCVVQxaHdhMkpYVG5sYVZXTjRZekE0ZVZOdGFHcE5iRlY1Vkd0T05GVldUa1pPU0d4WVltMTRSRlJyWkV0WFIxWkpWbTF3YkdGclNuZFhWbFp2VlRBeFNGUnJWbWxOTVhCT1ZGUktVbVZzY0VsaGVrWk9UVVJGTVZSc2FHRmhiVXBZVkdwS1ZWWXpRa05hUkVGNFVrVTVXV05IZEdsV01EVjNWbFZrZDA1SFJuUlNiR3hVWWxoQ2NGVnFSbGRpYkd0NVlqTmthRlpVUmxWVk1XaGhWVmRHZFZwRVNscGxhelZvV1cxNFEySnNRbFZOUjJ4TlpXcFJORlJFVGs5TmJIQTJUa1F3YVV4Nk5EaE1NMDR5V25vMFBTSXZQand2YzNablBnPT0iLz48L3N2Zz4="/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16" href="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxjaXJjbGUgcj0iMSIvPjwvc3ZnPg=="/><image width="16" height="16" href="data:image/svg+xml;BASE64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxjaXJjbGUgcj0iMSIvPjwvc3ZnPg=="/><image width="16" height="16" href="data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Ccircle%20r%3D%221%22/%3E%3C/svg%3E"/></svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- An inline data reference whose Base64 payload has its padding written as
|
|
3
|
+
percent-encoded characters. The browsers decode the percent-encoded characters
|
|
4
|
+
before reading the payload as Base64, so the payload is decoded as the document
|
|
5
|
+
it declares and is validated as a nested document. -->
|
|
6
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16" href="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxjaXJjbGUgcj0iMSIvPjwvc3ZnPg%3D%3D"/></svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- A document which mentions an entity declaration only inside a comment and
|
|
3
|
+
inside a CDATA section, where they are not interpreted as declarations. -->
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
5
|
+
<!-- Exported by a tool which documented that <!ENTITY declarations are not used. -->
|
|
6
|
+
<style><![CDATA[/* The text "<!ENTITY foo>" here is not a declaration. */ circle { fill: #000; }]]></style>
|
|
7
|
+
<circle cx="8" cy="8" r="8"/>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- A document which mentions an entity declaration inside a processing
|
|
3
|
+
instruction, where it is only text and not a declaration. -->
|
|
4
|
+
<?editor <!ENTITY documented "text of the instruction" ?>
|
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
6
|
+
<text y="15">Example</text>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- A link to an inline document. Links are not fetched when the document is
|
|
3
|
+
rendered, so they are not restricted as the references which load resources.
|
|
4
|
+
The browsers of the readers do not open data documents as top-level documents,
|
|
5
|
+
and the documents they open have an opaque origin, so the contents of the link
|
|
6
|
+
cannot read the contents of the page which contains it. -->
|
|
7
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
8
|
+
<a href="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cscript%3Ealert%281%29%3C/script%3E%3C/svg%3E"><text y="15">Example</text></a>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- A link with a scheme which does not fetch a resource when the document is
|
|
3
|
+
rendered and is not opened as a document by the browsers of the readers, so it
|
|
4
|
+
is accepted as the other links. -->
|
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
6
|
+
<a href="mailto:example@example.org"><text y="15">Example</text></a>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<!-- A comment longer than the leading bytes read to detect the file signature, so that the document is detected from the comment itself and then checked by the XML parser. -->
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><circle cx="8" cy="8" r="8" fill="#000"/></svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- An animation whose target reference is percent encoded, which browsers
|
|
3
|
+
resolve to the identifier of a link, which does not load any resource. -->
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16">
|
|
5
|
+
<a id="link" xlink:href="https://example.org"><text y="15">Example</text></a>
|
|
6
|
+
<set xlink:href="#%6C%69%6E%6B" attributeName="href" to="https://example.org" dur="1s" fill="freeze"/>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- An animation whose target reference decodes to the multi-byte identifier of
|
|
3
|
+
a link, which does not load any resource. -->
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16">
|
|
5
|
+
<a id="café" xlink:href="https://example.org"><text y="15">Example</text></a>
|
|
6
|
+
<set xlink:href="#caf%C3%A9" attributeName="href" to="https://example.org" dur="1s" fill="freeze"/>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- An animation whose target reference mixes a literal multi-byte character
|
|
3
|
+
with percent encoded bytes, which browsers resolve to the identifier of a
|
|
4
|
+
link, which does not load any resource. -->
|
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16">
|
|
6
|
+
<a id="caféé" xlink:href="https://example.org"><text y="15">Example</text></a>
|
|
7
|
+
<set xlink:href="#café%C3%A9" attributeName="href" to="https://example.org" dur="1s" fill="freeze"/>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- A document whose presentation attributes reference elements of the document
|
|
3
|
+
itself: the paint server, the filter, the clipping path and the marker,
|
|
4
|
+
which are resolved without fetching any resource. -->
|
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
6
|
+
<defs>
|
|
7
|
+
<pattern id="paint"><rect width="16" height="16"/></pattern>
|
|
8
|
+
<filter id="blur"><feGaussianBlur stdDeviation="1"/></filter>
|
|
9
|
+
<clipPath id="clip"><circle cx="8" cy="8" r="8"/></clipPath>
|
|
10
|
+
<marker id="arrow" markerWidth="4" markerHeight="4" refX="2" refY="2"><path d="M 0 0 l 4 2 l -4 2 z"/></marker>
|
|
11
|
+
</defs>
|
|
12
|
+
<rect width="16" height="16" fill="url(#paint)" stroke="#000" filter="url(#blur)" clip-path="url(#clip)" marker-end="url(#arrow)"/>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<?editor exported logo?>
|
|
2
|
+
<!-- A document which starts with a custom processing instruction, where the XML declaration is optional, so it is detected from the processing instruction prefix. -->
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><circle cx="8" cy="8" r="8" fill="#000"/></svg>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- A document whose reference elements are resolved against the document itself:
|
|
3
|
+
the elements which inherit from another one (the gradient, the pattern, the
|
|
4
|
+
filter and the font), the path of a "textPath" and an "mpath", the contents of
|
|
5
|
+
a "tref" and an "altGlyph", and the color profile declared with a relative
|
|
6
|
+
path. None of them fetches a resource. -->
|
|
7
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16">
|
|
8
|
+
<defs>
|
|
9
|
+
<linearGradient id="base-gradient"><stop offset="0" stop-color="#000"/></linearGradient>
|
|
10
|
+
<pattern id="base-pattern"><rect width="16" height="16"/></pattern>
|
|
11
|
+
<filter id="base-filter"><feGaussianBlur stdDeviation="1"/></filter>
|
|
12
|
+
<path id="base-path" d="M 0 0 l 16 0"/>
|
|
13
|
+
<font id="base-font"><font-face font-family="Base"/></font>
|
|
14
|
+
</defs>
|
|
15
|
+
<linearGradient xlink:href="#base-gradient"><stop offset="1" stop-color="#fff"/></linearGradient>
|
|
16
|
+
<radialGradient xlink:href="#base-gradient"><stop offset="1" stop-color="#fff"/></radialGradient>
|
|
17
|
+
<pattern xlink:href="#base-pattern"><rect width="8" height="8"/></pattern>
|
|
18
|
+
<filter xlink:href="#base-filter"><feOffset/></filter>
|
|
19
|
+
<text><textPath xlink:href="#base-path">Text</textPath></text>
|
|
20
|
+
<text><animateMotion><mpath xlink:href="#base-path"/></animateMotion></text>
|
|
21
|
+
<text><tref xlink:href="#base-font">Text</tref></text>
|
|
22
|
+
<text><altGlyph xlink:href="#base-font" unicode="A">A</altGlyph></text>
|
|
23
|
+
<font><font-face font-family="Other"><font-face-src><font-face-uri xlink:href="#base-font"/></font-face-src></font-face></font>
|
|
24
|
+
<color-profile src="profile.icc"/>
|
|
25
|
+
<image width="16" height="16"><animate attributeName="href" to="#base-pattern" dur="1s"/></image>
|
|
26
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- A logo referencing resources which are resolved against the document itself (fragments and relative paths) or which are inline (data URIs), and linking to an external site, which does not load any resource. -->
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16">
|
|
4
|
+
<defs>
|
|
5
|
+
<circle id="dot" cx="8" cy="8" r="8"/>
|
|
6
|
+
</defs>
|
|
7
|
+
<use href="#dot"/>
|
|
8
|
+
<image href="logo.png" width="16" height="16"/>
|
|
9
|
+
<image xlink:href="/assets/logo.png" width="16" height="16"/>
|
|
10
|
+
<image href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" width="1" height="1"/>
|
|
11
|
+
<a xlink:href="https://example.org"><text y="15">Example</text></a>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<!-- A document with a base which is relative to the document itself, so the references under it are resolved against the document and not against another host. -->
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" xml:base="images/" viewBox="0 0 16 16"><image href="logo.png" width="16" height="16"/></svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<!-- A document whose style sheet and presentation attributes reference resources
|
|
2
|
+
resolved against the document itself: the "image()" function with a relative
|
|
3
|
+
path, and the color profile declared as a name and as a fragment. -->
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
5
|
+
<style>circle { fill: #000; background-image: image("logo.png"); color-profile: url(#profile); }</style>
|
|
6
|
+
<defs><iccProfile id="profile"/></defs>
|
|
7
|
+
<circle cx="8" cy="8" r="8" color-profile="sRGB"/>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- A reference starting at the root, which is accepted because it cannot resolve to
|
|
3
|
+
another host. It is still requested to the origin which serves the document when
|
|
4
|
+
it is rendered, with the credentials of the reader. -->
|
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
6
|
+
<image href="/assets/logo.png" width="16" height="16"/>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- A logo whose style sheet mentions resource references only inside quoted text and comments, which are rendered as content and never loaded. -->
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
4
|
+
<style>.logo::after { content: "See @import instructions"; } .logo::before { content: "url(https://example.org/logo.png)"; } .logo::first-line { content: "u\72l(https://example.org/logo.png)"; } .logo { fill: url(#dot); /* background: url(https://example.org) */ }</style>
|
|
5
|
+
<defs>
|
|
6
|
+
<circle id="dot" cx="8" cy="8" r="8"/>
|
|
7
|
+
</defs>
|
|
8
|
+
<circle class="logo" cx="8" cy="8" r="8" fill="#000" style="content: 'url(https://example.org) and @import'"/>
|
|
9
|
+
</svg>
|
|
Binary file
|