[Modify] Add a pre-check for url decode
This commit is contained in:
parent
eb59c733be
commit
c32f365537
@ -920,6 +920,8 @@ namespace WebSocketSharp.Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
var path = uri.AbsolutePath;
|
var path = uri.AbsolutePath;
|
||||||
|
if (path.IndexOfAny (new[] { '%', '+' }) > -1)
|
||||||
|
path = HttpUtility.UrlDecode (path, Encoding.UTF8);
|
||||||
|
|
||||||
WebSocketServiceHost host;
|
WebSocketServiceHost host;
|
||||||
if (!_services.InternalTryGetServiceHost (path, out host)) {
|
if (!_services.InternalTryGetServiceHost (path, out host)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user