aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrion Vibber <brion@users.mediawiki.org>2011-06-01 22:35:03 +0000
committerBrion Vibber <brion@users.mediawiki.org>2011-06-01 22:35:03 +0000
commit29aedac7db8b9463f769695957f839039ec00e9d (patch)
treee7ab9867d84413cd2a06675468e67508de07168c
parent174b7d6a7a036844dcfe195f9190d3d683be38ae (diff)
downloadmediawikicore-29aedac7db8b9463f769695957f839039ec00e9d.tar.gz
mediawikicore-29aedac7db8b9463f769695957f839039ec00e9d.zip
Add some doc comments on Cookie::validateCookieDomain() and Http::isValidUri(), which both have some failing test cases and are incomplete
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/89300
-rw-r--r--includes/Cookie.php3
-rw-r--r--includes/HttpFunctions.php3
2 files changed, 6 insertions, 0 deletions
diff --git a/includes/Cookie.php b/includes/Cookie.php
index 10d95a7883a5..95a4599fd9c4 100644
--- a/includes/Cookie.php
+++ b/includes/Cookie.php
@@ -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
diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php
index b36011e94c15..75dbbdf37c9c 100644
--- a/includes/HttpFunctions.php
+++ b/includes/HttpFunctions.php
@@ -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
*/