mirror of
https://github.com/aria2/aria2.git
synced 2025-01-04 09:03:46 +00:00
460ee92644
Fixed the bug that name attribute of file element in Metalink file is not properly sanitized. * src/Metalink2RequestGroup.cc * src/MetalinkParserController.cc * test/Makefile.am * test/Metalink2RequestGroupTest.cc * test/metalink4-dosdirtraversal.xml
15 lines
543 B
XML
15 lines
543 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<metalink xmlns="urn:ietf:params:xml:ns:metalink">
|
|
<file name="..\..\example.ext">
|
|
<url location="fr" priority="1">http://example.com/example.ext</url>
|
|
</file>
|
|
<file name="..\..\file1.ext">
|
|
<size>12345</size>
|
|
<metaurl mediatype="torrent" name="d/file1.ext">http://example.com/example.torrent</metaurl>
|
|
</file>
|
|
<file name="..\..\file2.ext">
|
|
<size>12345</size>
|
|
<metaurl mediatype="torrent" name="d/file2.ext">http://example.com/example.torrent</metaurl>
|
|
</file>
|
|
</metalink>
|