diff options
author | Michael Brown | 2008-09-24 08:22:42 +0200 |
---|---|---|
committer | Michael Brown | 2008-09-24 08:22:42 +0200 |
commit | 35b7658877967e0f0a647a53e3b11497268efbb5 (patch) | |
tree | bff2e0fd2a364b6304b4342fe43e9841f4fc3c0e /src/core/btext.c | |
parent | [uri] Add uri_encode() and uri_decode() functions for URI character encoding (diff) | |
download | ipxe-35b7658877967e0f0a647a53e3b11497268efbb5.tar.gz ipxe-35b7658877967e0f0a647a53e3b11497268efbb5.tar.xz ipxe-35b7658877967e0f0a647a53e3b11497268efbb5.zip |
[settings] Add the uristring setting type
This allows settings to be expanded in a way that is safe to include
within a URI string, such as
kernel http://10.0.0.1/boot.php?mf=${manufacturer:uristring}
where the ${manufacturer} setting may contain characters that are not
permitted (or have reserved purposes) within a URI.
Since whitespace characters will be URI-encoded (e.g. "%20" for a
space character), this also works around the problem that spaces
within an expanded setting would cause the shell to split command-line
arguments incorrectly.
Diffstat (limited to 'src/core/btext.c')
0 files changed, 0 insertions, 0 deletions