jellyfin/MediaBrowser.Model/Connect/ConnectPassword.cs
Luke Pulverenti 7a4d5b7951 3.0.5416.0
2014-10-31 00:57:24 -04:00

20 lines
527 B
C#

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