WebGitNet icon indicating copy to clipboard operation
WebGitNet copied to clipboard

Slashes in branch names break URL routing.

Open otac0n opened this issue 12 years ago • 2 comments

Title pretty much says it. Check out fuel/fuel for a real-world example.

otac0n avatar Jan 02 '13 20:01 otac0n

Woops, just meant to comment that this may be fixed simply by URL encoding slashes, but I recall that there may be an issue with those in .NET's URI class, possibly requiring a hacked URI or a setting in the Web.config

http://stackoverflow.com/questions/781205/getting-a-url-with-an-url-encoded-slash

otac0n avatar Jan 07 '13 19:01 otac0n

This is a pretty deep rabbit hole. Unfortunately, we can only allow one wildcard routing segment, so we need a different encoding scheme, or we need to put either the branch or the file path into the query string.

otac0n avatar Jan 12 '13 23:01 otac0n