jgauffin / Griffin.WebServer

A web server built on top of Griffin.Framework
107 stars 42 forks source link

FileListing not working if dot in path #42

Open cocoon opened 4 years ago

cocoon commented 4 years ago

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"

https://github.com/jgauffin/Griffin.WebServer/blob/1a447fbf8bbe6ae661cf46f5f94d1ab8bcc8fea6/Source/Griffin.WebServer/Griffin.WebServer/Files/FileModule.cs#L176

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!