src/BloomExe/Extensions.cs
/// <summary>
/// Remove the escaping of characters that need it for our url/http processing to restore
/// a valid file pathname.
/// </summary>
/// <remarks>
/// Note that calls to UnescapeFileNameForHttp() must be matched by an equal number of
/// previous calls to EscapeFileNameForHttp().  (Normally each is called once.)
/// </remarks>
Remove the escaping of characters that need it for our url/http processing to restore
a valid file pathname.
Remove the escaping of characters that need it for our url / http processing to restore a valid file pathname .
public static string UnescapeFileNameForHttp(this string uri)
		{
			return Uri.UnescapeDataString(uri);
		}
public static string UnescapeFileNameForHttp ( this string uri ) { return Uri . UnescapeDataString ( uri ) ; }
Remove the escaping of characters that need it for our url/http processing to restore
a valid file pathname.
Remove the escaping of characters that need it for our url / http processing to restore a valid file pathname .
// Our original implementation manually unescaped the escape sequences for the following characters: ' ', ':', '#', '?', '(', ')', and '%' // Now we just wrap a System.Uri function (which is more thorough about unescaping escape sequences) // and convert it into an extension method
string
this
remarks
Note that calls to UnescapeFileNameForHttp() must be matched by an equal number of
previous calls to EscapeFileNameForHttp().  (Normally each is called once.)
Note that calls to UnescapeFileNameForHttp () must be matched by an equal number of previous calls to EscapeFileNameForHttp () . ( Normally each is called once . )