jgauffin / Griffin.WebServer

A web server built on top of Griffin.Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FileListing not working if dot in path

cocoon opened this issue · comments

Hi, I had a small problem that I wanted to share:

This line of code breaks the directory listing ifa you have a dot in the foldername like

"http//something/mytool/8.0/whatever"

if (context.Request.Uri.AbsolutePath.Contains(":") || context.Request.Uri.AbsolutePath.Contains("."))

I just removed this part for now:

context.Request.Uri.AbsolutePath.Contains("."))

I just started using it since few days and especially because of ssl support, thanks for that, cheers!