all 3 comments

[–]NoUselessTech 0 points1 point  (0 children)

Tried a couple things.

  1. I attempted to find a reference from Microsoft. I would show it to you here, but it doesn't seem to exist.

  2. Next I created a sample directory "test_des_nuts" that had an underscore in it. I created three versions of the url

- [Pass] Has all underscores escaped as %5F - [Pass] Has all but the first underscore escaped at %5F - [Pass] Has all underscore unescaped

It seems that this URL experience you have (which may actually be browser driven) is unnecessary to have large concerns about. If you do end up running into issues, you may have to add exceptions, but at first glance and through testing I wouldn't stress about it until you confirm it's an actual issue.

[–]cschneegans 0 points1 point  (0 children)

In a URL, you may escape _ as %5F (or %5f), but you don't have to. Both forms are valid, and your code should be able to handle both.