Skip to content

Commit

Permalink
[uri] Support "file:" URIs describing relative paths
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Mar 14, 2016
1 parent 17c1488 commit 7549681
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/uri.c
Expand Up @@ -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 */
Expand Down
4 changes: 2 additions & 2 deletions src/tests/uri_test.c
Expand Up @@ -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",
},
};

Expand Down

0 comments on commit 7549681

Please sign in to comment.