]> source.dussan.org Git - jgit.git/commit
Add percent-encoding of reserved characters in URIish 50/4550/8
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Tue, 29 Nov 2011 23:16:40 +0000 (00:16 +0100)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Fri, 2 Dec 2011 14:50:09 +0000 (15:50 +0100)
commit00514bde50de77380082e57da7a3cde2d714c733
treedf506dd13214845f3bdb5cd115e18bd25c5bab92
parent790ddb2983bce01d2d0b5b1049d5576fa0c136a8
Add percent-encoding of reserved characters in URIish

We do this for the the names that have an explicit scheme and
do it both ways. The URIish is parsed before decoding. Only
a few special characters are encoded for the path part of the
URI, i.e. space, non-ASCII and control characters. The percent
encoding is assumed to be a stream encoding so we interpret it
as UTF-8.

Change-Id: I82d1910df9472e21d7212a2b984ff7d8fb2cbf0f
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/URIish.java