diff options
author | Jennifer Hodgdon <yahgrp@poplarware.com> | 2012-05-04 13:03:12 -0700 |
---|---|---|
committer | Jennifer Hodgdon <yahgrp@poplarware.com> | 2012-05-04 13:03:12 -0700 |
commit | b953e7e5a56980a8a0d718bd3ce0bd50e209a621 (patch) | |
tree | efc70307b324cfd537e8f5e4ddc506690633f6d1 | |
parent | 4b39ca547dbadc6f22c25dcadf00cc2951b28e6a (diff) | |
download | brdo-b953e7e5a56980a8a0d718bd3ce0bd50e209a621.tar.gz brdo-b953e7e5a56980a8a0d718bd3ce0bd50e209a621.tar.bz2 |
Issue #/1536750 by perusio: Fix drupal_goto documentation of status codes
-rw-r--r-- | includes/common.inc | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/includes/common.inc b/includes/common.inc index f3c936e95..ad5f44a5c 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -651,16 +651,17 @@ function drupal_encode_path($path) { * @param $options * An associative array of additional URL options to pass to url(). * @param $http_response_code - * Valid values for an actual "goto" as per RFC 2616 section 10.3 are: - * - 301 Moved Permanently (the recommended value for most redirects) - * - 302 Found (default in Drupal and PHP, sometimes used for spamming search - * engines) - * - 303 See Other - * - 304 Not Modified - * - 305 Use Proxy - * - 307 Temporary Redirect (alternative to "503 Site Down for Maintenance") - * Note: Other values are defined by RFC 2616, but are rarely used and poorly - * supported. + * The valid values for 3xx redirection status codes are defined in + * @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3 RFC 2616 @endlink + * and the + * @link http://tools.ietf.org/html/draft-reschke-http-status-308-07 draft for the new HTTP status codes: @endlink + * - 301: Moved Permanently (the recommended value for most redirects). + * - 302: Found (default in Drupal and PHP, sometimes used for spamming search + * engines). + * - 303: See Other. + * - 304: Not Modified. + * - 305: Use Proxy. + * - 307: Temporary Redirect. * * @see drupal_get_destination() * @see url() |