playframework/Play20 — comment on commit 8d578cd7c83ca7f1fb1f5186cca00ae6d88a4d37
File: framework/src/play/src/main/scala/play/api/controllers/Assets.scala line 33
By kevinbosman:

On Windows, getCanonicalPath prepends the drive letter (eg "C:") if the path begins with /
Thus the above change mangles the resourceName before use, which results in a 404.
Embedding getCanonicalPath into the following line instead fixes the problem, eg:

```scala
val resourceName = Option(path + "/" + file).map(name => if (name.startsWith("/")) name else ("/" + name)).get
if (!new File(resourceName).getCanonicalPath.startsWith(new File(path).getCanonicalPath)) {
```