[Pkg-libvirt-commits] [libguestfs] 191/266: v2v: utils: Permit more safe/unquoted characters in url_quote function.
Hilko Bengen
bengen at moszumanska.debian.org
Fri Oct 3 14:42:00 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag debian/1%1.27.35-1
in repository libguestfs.
commit f54aff9e9ffa55a50d4e7a15586931035e5884f4
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Tue Aug 26 22:56:31 2014 +0100
v2v: utils: Permit more safe/unquoted characters in url_quote function.
---
v2v/utils.ml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/v2v/utils.ml b/v2v/utils.ml
index 6db8341..dd46835 100644
--- a/v2v/utils.ml
+++ b/v2v/utils.ml
@@ -53,8 +53,10 @@ let uri_quote str =
for i = 0 to len-1 do
xs :=
(match str.[i] with
- | ('a'..'z' | '0'..'9') as c -> String.make 1 c
- | c -> sprintf "%%%02x" (Char.code c)
+ | ('A'..'Z' | 'a'..'z' | '0'..'9' | '/' | '.' | '-') as c ->
+ String.make 1 c
+ | c ->
+ sprintf "%%%02x" (Char.code c)
) :: !xs
done;
String.concat "" (List.rev !xs)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list