Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch '2.2' into persistent_pubsub

  • Loading branch information...
commit 4107c797dee955e6ca0c46c306a725bff3366cca 2 parents b0535f5 + a9ee331
@sdether sdether authored
View
5 src/mindtouch.dream/system/stringutil.cs
@@ -981,10 +981,7 @@ public static class StringUtil {
/// <param name="n">Integer to convert.</param>
/// <returns>Hexadecimal character.</returns>
public static char IntToHexChar(int n) {
- if(n <= 9) {
- return (char)(n + 0x30);
- }
- return (char)((n - 10) + 0x61);
+ return n.ToString("X")[0];
}
/// <summary>
View
4 src/tests/DreamMisc/XUri-Test.cs
@@ -300,7 +300,7 @@ public class XUriTest {
Assert.AreEqual("/c=GB", uri.Path);
Assert.AreEqual(1, uri.Segments.Length);
Assert.AreEqual(false, uri.TrailingSlash);
- Assert.AreEqual("objectClass%3fone", uri.Query);
+ Assert.AreEqual("objectClass%3Fone", uri.Query);
Assert.AreEqual(null, uri.Fragment);
}
@@ -490,7 +490,7 @@ public class XUriTest {
[Test]
public void Square_brackets_in_parsed_query_are_encoded_on_render() {
- Assert.AreEqual("http://host/foo?bar%5b123%5d=abc",new XUri("http://host/foo?bar[123]=abc").ToString());
+ Assert.AreEqual("http://host/foo?bar%5B123%5D=abc",new XUri("http://host/foo?bar[123]=abc").ToString());
}
[Test]

0 comments on commit 4107c79

Please sign in to comment.
Something went wrong with that request. Please try again.