[Modify] Polish it
This commit is contained in:
parent
4b23c190f4
commit
b6e8d76df1
@ -249,7 +249,9 @@ namespace WebSocketSharp.Server
|
||||
if (path.IndexOf ("..") > -1)
|
||||
throw new ArgumentException ("It contains '..'.", "path");
|
||||
|
||||
return tryReadFile (createFilePath (path), out contents);
|
||||
path = createFilePath (path);
|
||||
|
||||
return tryReadFile (path, out contents);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
Loading…
Reference in New Issue
Block a user