@@ -19,11 +19,16 @@ public class UrlPathDecoder
19
19
/// <summary>
20
20
/// Unescape a url char array in place. Returns the length of the result.
21
21
///
22
- /// - Everything is unescaped except %2F ('\ ')
22
+ /// - Everything is unescaped except %2F ('/ ')
23
23
/// - UTF8 bytes are tested for formatting, overlong encoding, surrogates and value ranges
24
24
/// - Invalid escaped sequence are copied to output as is
25
25
/// - It doesn't check if the string contains query
26
26
/// </summary>
27
+ /// <param name="buffer">
28
+ /// The char array contains sequence of charactors to be decoded. The
29
+ /// result will be saved in the same array.
30
+ /// </param>
31
+ /// <returns>The length of the result.</returns>
27
32
public static int DecodeInPlace ( char [ ] buffer )
28
33
{
29
34
if ( buffer == null )
@@ -42,11 +47,13 @@ public static int DecodeInPlace(char[] buffer)
42
47
/// <summary>
43
48
/// Unescape a url path string.
44
49
///
45
- /// - Everything is unescaped except %2F ('\ ')
50
+ /// - Everything is unescaped except %2F ('/ ')
46
51
/// - UTF8 bytes are tested for formatting, overlong encoding, surrogates and value ranges
47
52
/// - Invalid escaped sequence are copied to output as is
48
53
/// - It doesn't check if the string contains query
49
54
/// </summary>
55
+ /// <param name="original">The string to be decoded.</param>
56
+ /// <returns>The decoded result.</returns>
50
57
public static string Decode ( string original )
51
58
{
52
59
if ( original == null )
0 commit comments