https://bugzilla.novell.com/show_bug.cgi?id=421827

User [email protected] added comment
https://bugzilla.novell.com/show_bug.cgi?id=421827#c6





--- Comment #6 from - - <[email protected]>  2009-02-25 16:17:25 MST ---
How about

static bool CheckDomain (string domain, string host)
{
    if (domain == "") {
        return false;
    } else if (domain[0] != ".") {
        domain = "." + domain;
    }
    if (host.Length != "" && host[0] != ".") {
        host = "." + host;
    }
    return host.EndsWith(domain);
}

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to