jellyfin/MediaBrowser.Model/Connect/ConnectPassword.cs

20 lines
527 B
C#
Raw Normal View History

2014-10-31 04:57:24 +00: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;");
}
}
}