david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[uri] Support "file:" URIs describing relative paths

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2016-03-14 17:39:17 +00:00
parent 17c1488a44
commit 75496817c2
2 changed files with 3 additions and 3 deletions

View File

@ -157,7 +157,7 @@ static int uri_character_escaped ( char c, unsigned int field ) {
* the reparsing of the URI, allowing everything else
* (e.g. ':', which will appear in iSCSI URIs).
*/
[URI_OPAQUE] = "/#",
[URI_OPAQUE] = "#",
/* User name: escape everything */
[URI_USER] = "/#:@?",
/* Password: escape everything */

View File

@ -612,10 +612,10 @@ static struct uri_test uri_iscsi = {
/** File URI with relative (opaque) path */
static struct uri_test uri_file_relative = {
"file:script.ipxe",
"file:boot/script.ipxe",
{
.scheme = "file",
.opaque = "script.ipxe",
.opaque = "boot/script.ipxe",
},
};