jellyfin/MediaBrowser.Model/Connect/ConnectPassword.cs

20 lines
527 B
C#
Raw Normal View History

2014-10-30 21:57:24 -07:00

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;");
}
}
}