@ -11,7 +11,7 @@ namespace NzbDrone.Common.Instrumentation
private static readonly Regex [ ] CleansingRules = new [ ]
{
// Url
new Regex ( @"(?<=[?&: ;])(apikey|(?:(?:access|api)[-_]?)?token|pass(?:key|wd)?|auth|authkey|user|u?id|api|[a-z_]*apikey|account|pwd)=(?<secret>[^&= ]+?)(?= |&|$|< )", RegexOptions . Compiled | RegexOptions . IgnoreCase ) ,
new Regex ( @"(?<=[?&: ;])(apikey|(?:(?:access|api)[-_]?)?token|pass(?:key|wd)?|auth|authkey|user|u?id|api|[a-z_]*apikey|account|pwd)=(?<secret>[^&= ""]+?)(?=[ ""&=]|$ )", RegexOptions . Compiled | RegexOptions . IgnoreCase ) ,
new Regex ( @"(?<=[?& ;])[^=]*?(_?(?<!use|get_)token|username|passwo?rd)=(?<secret>[^&=]+?)(?= |&|$|;)" , RegexOptions . Compiled | RegexOptions . IgnoreCase ) ,
new Regex ( @"rss\.torrentleech\.org/(?!rss)(?<secret>[0-9a-z]+)" , RegexOptions . Compiled | RegexOptions . IgnoreCase ) ,
new Regex ( @"rss\.torrentleech\.org/rss/download/[0-9]+/(?<secret>[0-9a-z]+)" , RegexOptions . Compiled | RegexOptions . IgnoreCase ) ,
@ -28,6 +28,9 @@ namespace NzbDrone.Common.Instrumentation
new Regex ( @"""C:\\Users\\(?<secret>[^\""]+?)(\\|$)" , RegexOptions . Compiled | RegexOptions . IgnoreCase ) ,
new Regex ( @"""/home/(?<secret>[^/""]+?)(/|$)" , RegexOptions . Compiled | RegexOptions . IgnoreCase ) ,
// Trackers Announce Keys; Designed for Qbit Json; should work for all in theory
new Regex ( @"announce(\.php)?(/|%2f|%3fpasskey%3d)(?<secret>[a-z0-9]{16,})|(?<secret>[a-z0-9]{16,})(/|%2f)announce" ) ,
// NzbGet
new Regex ( @"""Name""\s*:\s*""[^""]*(username|password)""\s*,\s*""Value""\s*:\s*""(?<secret>[^""]+?)""" , RegexOptions . Compiled | RegexOptions . IgnoreCase ) ,