mirror of https://github.com/ipxe/ipxe.git
[uri] Support "file:" URIs describing relative paths
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/51/head
parent
17c1488a44
commit
75496817c2
|
@ -157,7 +157,7 @@ static int uri_character_escaped ( char c, unsigned int field ) {
|
||||||
* the reparsing of the URI, allowing everything else
|
* the reparsing of the URI, allowing everything else
|
||||||
* (e.g. ':', which will appear in iSCSI URIs).
|
* (e.g. ':', which will appear in iSCSI URIs).
|
||||||
*/
|
*/
|
||||||
[URI_OPAQUE] = "/#",
|
[URI_OPAQUE] = "#",
|
||||||
/* User name: escape everything */
|
/* User name: escape everything */
|
||||||
[URI_USER] = "/#:@?",
|
[URI_USER] = "/#:@?",
|
||||||
/* Password: escape everything */
|
/* Password: escape everything */
|
||||||
|
|
|
@ -612,10 +612,10 @@ static struct uri_test uri_iscsi = {
|
||||||
|
|
||||||
/** File URI with relative (opaque) path */
|
/** File URI with relative (opaque) path */
|
||||||
static struct uri_test uri_file_relative = {
|
static struct uri_test uri_file_relative = {
|
||||||
"file:script.ipxe",
|
"file:boot/script.ipxe",
|
||||||
{
|
{
|
||||||
.scheme = "file",
|
.scheme = "file",
|
||||||
.opaque = "script.ipxe",
|
.opaque = "boot/script.ipxe",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue