Add some doc comments on Cookie::validateCookieDomain() and Http::isValidUri(), which...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 1 Jun 2011 22:35:03 +0000 (22:35 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 1 Jun 2011 22:35:03 +0000 (22:35 +0000)
includes/Cookie.php
includes/HttpFunctions.php

index 10d95a7..95a4599 100644 (file)
@@ -62,6 +62,9 @@ class Cookie {
         * A better method might be to use a blacklist like
         * http://publicsuffix.org/
         *
+        * @fixme fails to detect 3-letter top-level domains
+        * @fixme fails to detect 2-letter top-level domains for single-domain use (probably not a big problem in practice, but there are test cases)
+        *
         * @param $domain String: the domain to validate
         * @param $originDomain String: (optional) the domain the cookie originates from
         * @return Boolean
index b36011e..75dbbdf 100644 (file)
@@ -125,6 +125,9 @@ class Http {
         * protocols, because we only want protocols that both cURL
         * and php support.
         *
+        * @fixme this is wildly inaccurate and fails to actually check most stuff
+        * @fixme do we actually intend to have FTP support here? Does it work consistently?
+        *
         * @param $uri Mixed: URI to check for validity
         * @returns Boolean
         */