resizer icon indicating copy to clipboard operation
resizer copied to clipboard

Validate URI structure during signing.

Open lilith opened this issue 11 years ago • 1 comments

Better to fail early; RemoteReader should Uri.IsWellFormedUriString(requestEventArgs.RemoteUrl, UriKind.Absolute) during CreateSignedUrl.

lilith avatar May 30 '14 20:05 lilith

The use of Uri.IsWellFormedUriString is causing an exception for Urls that may technically be invalid but are in use and supported by most, if not all, browsers. Here is an example from Volvo's site:

https://www.volvopartshop.com/ekmps/shops/tmsvolvo/images/v50-roof-rail-end-caps-black--front-or-rear-front-side-right-hand-18052-p[ekm]299x224[ekm].jpg

edmacdonald avatar Jun 22 '17 23:06 edmacdonald