You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/MediaBrowser.Model/Connect/ConnectPassword.cs

20 lines
527 B

10 years ago

namespace MediaBrowser.Model.Connect
{
public static class ConnectPassword
{
public static string PerformPreHashFilter(string password)
{
return password
.Replace("&", "&")
.Replace("/", "\")
.Replace("!", "!")
.Replace("$", "$")
.Replace("\"", """)
.Replace("<", "&lt;")
.Replace(">", "&gt;")
.Replace("'", "&#39;");
}
}
}