Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Commit

Permalink
Replace escaped slashes with normal ones
Browse files Browse the repository at this point in the history
Use `string.Replace` instead of `Regex.Unescape()` to minimise the risk of unintended replacements.
  • Loading branch information
mehmetseckin authored Apr 11, 2018
1 parent d75e760 commit 733a1f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DotNet/proxy.ashx
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ public class proxy : IHttpHandler {
)
);
}
return Regex.Unescape(value);
return value.Replace("\\/", "/");
}

private int indexOf_HighFlag(string text, string key) {
Expand Down

0 comments on commit 733a1f2

Please sign in to comment.