Skip to content

Commit

Permalink
Update drupal-core 6.20 ==> 6.22
Browse files Browse the repository at this point in the history
  • Loading branch information
kwcoffman committed Jul 5, 2011
1 parent a97d36c commit e67c4d7
Show file tree
Hide file tree
Showing 347 changed files with 612 additions and 864 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.txt
@@ -1,4 +1,14 @@
// $Id: CHANGELOG.txt,v 1.253.2.43 2010/12/15 21:11:22 goba Exp $

Drupal 6.22, 2011-05-25
----------------------
- Made Drupal 6 work better with IIS and Internet Explorer.
- Fixed .po file imports to work better with custom textgroups.
- Improved code documentation at various places.
- Fixed a variety of other bugs.

Drupal 6.21, 2011-05-25
----------------------
- Fixed security issues (Cross site scripting), see SA-CORE-2011-001.

Drupal 6.20, 2010-12-15
----------------------
Expand Down
1 change: 0 additions & 1 deletion COPYRIGHT.txt
@@ -1,4 +1,3 @@
// $Id: COPYRIGHT.txt,v 1.2.2.3 2010/08/06 10:58:29 goba Exp $

All Drupal code is Copyright 2001 - 2010 by the original authors.

Expand Down
1 change: 0 additions & 1 deletion INSTALL.mysql.txt
@@ -1,4 +1,3 @@
// $Id: INSTALL.mysql.txt,v 1.10 2007/11/19 19:53:51 goba Exp $

CREATE THE MySQL DATABASE
--------------------------
Expand Down
1 change: 0 additions & 1 deletion INSTALL.pgsql.txt
@@ -1,4 +1,3 @@
// $Id: INSTALL.pgsql.txt,v 1.7 2007/11/26 16:36:42 dries Exp $

CREATE THE PostgreSQL DATABASE
------------------------------
Expand Down
1 change: 0 additions & 1 deletion INSTALL.txt
@@ -1,4 +1,3 @@
// $Id: INSTALL.txt,v 1.61.2.5 2010/12/06 06:50:55 goba Exp $

CONTENTS OF THIS FILE
---------------------
Expand Down
602 changes: 268 additions & 334 deletions LICENSE.txt

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion MAINTAINERS.txt
@@ -1,4 +1,3 @@
// $Id: MAINTAINERS.txt,v 1.19.2.2 2009/04/29 17:15:10 goba Exp $

List of maintainers
--------------------------------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion UPGRADE.txt
@@ -1,4 +1,3 @@
// $Id: UPGRADE.txt,v 1.12.2.1 2010/05/11 09:39:36 goba Exp $

UPGRADING
---------
Expand Down
1 change: 0 additions & 1 deletion cron.php
@@ -1,5 +1,4 @@
<?php
// $Id: cron.php,v 1.36 2006/08/09 07:42:55 dries Exp $

/**
* @file
Expand Down
1 change: 0 additions & 1 deletion includes/actions.inc
@@ -1,5 +1,4 @@
<?php
// $Id: actions.inc,v 1.8.2.13 2010/08/11 20:35:47 goba Exp $

/**
* @file
Expand Down
3 changes: 1 addition & 2 deletions includes/batch.inc
@@ -1,5 +1,4 @@
<?php
// $Id: batch.inc,v 1.14.2.1 2010/08/06 11:52:19 goba Exp $

/**
* @file Batch processing API for processes to run in multiple HTTP requests.
Expand Down Expand Up @@ -245,7 +244,7 @@ function _batch_process() {
'@percentage' => $percentage,
);
$message = strtr($progress_message, $values) .'<br/>';
$message .= $task_message ? $task_message : '&nbsp';
$message .= $task_message ? $task_message : '&nbsp;';

return array($percentage, $message);
}
Expand Down
1 change: 0 additions & 1 deletion includes/bootstrap.inc
@@ -1,5 +1,4 @@
<?php
// $Id: bootstrap.inc,v 1.206.2.31 2010/12/15 13:21:14 goba Exp $

/**
* @file
Expand Down
1 change: 0 additions & 1 deletion includes/cache-install.inc
@@ -1,5 +1,4 @@
<?php
// $Id: cache-install.inc,v 1.2 2007/08/07 08:39:35 goba Exp $

/**
* A stub cache implementation to be used during the installation
Expand Down
1 change: 0 additions & 1 deletion includes/cache.inc
@@ -1,5 +1,4 @@
<?php
// $Id: cache.inc,v 1.17.2.5 2010/11/03 19:07:46 goba Exp $

/**
* Return data from the persistent cache. Data may be stored as either plain text or as serialized data.
Expand Down
8 changes: 4 additions & 4 deletions includes/common.inc
@@ -1,5 +1,4 @@
<?php
// $Id: common.inc,v 1.756.2.106 2010/12/15 21:11:22 goba Exp $

/**
* @file
Expand Down Expand Up @@ -201,7 +200,7 @@ function drupal_get_feeds($delimiter = "\n") {
}

/**
* @name HTTP handling
* @defgroup http_handling HTTP handling
* @{
* Functions to properly handle HTTP responses.
*/
Expand Down Expand Up @@ -653,7 +652,7 @@ function drupal_error_handler($errno, $message, $filename, $line, $context) {
}
}

$entry = $types[$errno] .': '. $message .' in '. $filename .' on line '. $line .'.';
$entry = check_plain($types[$errno]) .': '. filter_xss($message) .' in '. check_plain($filename) .' on line '. check_plain($line) .'.';

// Force display of error messages in update.php.
if (variable_get('error_level', 1) == 1 || strstr($_SERVER['SCRIPT_NAME'], 'update.php')) {
Expand Down Expand Up @@ -1639,7 +1638,8 @@ function drupal_page_footer() {
* A linear array.
* @param $function
* A name of a function to apply to all values before output.
* @result
*
* @return
* An associative array.
*/
function drupal_map_assoc($array, $function = NULL) {
Expand Down
1 change: 0 additions & 1 deletion includes/database.inc
@@ -1,5 +1,4 @@
<?php
// $Id: database.inc,v 1.92.2.11 2010/11/03 14:02:33 goba Exp $

/**
* @file
Expand Down
3 changes: 1 addition & 2 deletions includes/database.mysql-common.inc
@@ -1,5 +1,4 @@
<?php
// $Id: database.mysql-common.inc,v 1.17.2.5 2010/12/15 13:21:14 goba Exp $

/**
* @file
Expand Down Expand Up @@ -290,7 +289,7 @@ function db_drop_table(&$ret, $table) {
* table along with adding the field. The format is the same as a
* table specification but without the 'fields' element. If you are
* adding a type 'serial' field, you MUST specify at least one key
* or index including it in this array. @see db_change_field for more
* or index including it in this array. See db_change_field() for more
* explanation why.
*/
function db_add_field(&$ret, $table, $field, $spec, $keys_new = array()) {
Expand Down
1 change: 0 additions & 1 deletion includes/database.mysql.inc
@@ -1,5 +1,4 @@
<?php
// $Id: database.mysql.inc,v 1.89.2.4 2010/12/15 20:41:10 goba Exp $

/**
* @file
Expand Down
1 change: 0 additions & 1 deletion includes/database.mysqli.inc
@@ -1,5 +1,4 @@
<?php
// $Id: database.mysqli.inc,v 1.54.2.4 2010/12/15 20:41:10 goba Exp $

/**
* @file
Expand Down
3 changes: 1 addition & 2 deletions includes/database.pgsql.inc
@@ -1,5 +1,4 @@
<?php
// $Id: database.pgsql.inc,v 1.68.2.11 2010/12/15 20:41:10 goba Exp $

/**
* @file
Expand Down Expand Up @@ -662,7 +661,7 @@ function db_drop_table(&$ret, $table) {
* table along with adding the field. The format is the same as a
* table specification but without the 'fields' element. If you are
* adding a type 'serial' field, you MUST specify at least one key
* or index including it in this array. @see db_change_field for more
* or index including it in this array. See db_change_field() for more
* explanation why.
*/
function db_add_field(&$ret, $table, $field, $spec, $new_keys = array()) {
Expand Down
47 changes: 34 additions & 13 deletions includes/file.inc
@@ -1,5 +1,4 @@
<?php
// $Id: file.inc,v 1.121.2.14 2010/12/13 19:02:09 goba Exp $

/**
* @file
Expand Down Expand Up @@ -83,17 +82,28 @@ function file_create_path($dest = 0) {
}

/**
* Check that the directory exists and is writable. Directories need to
* have execute permissions to be considered a directory by FTP servers, etc.
* Checks whether a directory exists and is writable.
*
* @param $directory A string containing the name of a directory path.
* @param $mode A Boolean value to indicate if the directory should be created
* if it does not exist or made writable if it is read-only.
* @param $form_item An optional string containing the name of a form item that
* any errors will be attached to. This is useful for settings forms that
* require the user to specify a writable directory. If it can't be made to
* work, a form error will be set preventing them from saving the settings.
* @return FALSE when directory not found, or TRUE when directory exists.
* Furthermore, the directory can optionally be created if it does not exist,
* and/or be set to writable if it is currently not. Directories need to have
* execute permission to be considered a directory by FTP servers.
*
* @param $directory
* A string representing the directory path.
* @param $mode
* An optional bitmask containing the actions, if any, to be carried out on
* the directory. Any combination of the actions FILE_CREATE_DIRECTORY and
* FILE_MODIFY_PERMISSIONS is allowed.
* @param $form_item
* An optional string containing the name of a form item that any errors
* will be attached to. Useful when the function validates a directory path
* entered as a form value. An error will consequently prevent form submit
* handlers from running, and instead display the form along with the
* error messages.
*
* @return
* FALSE if the directory does not exist or is not writable, even after
* any optional actions have been carried out. Otherwise, TRUE is returned.
*/
function file_check_directory(&$directory, $mode = 0, $form_item = NULL) {
$directory = rtrim($directory, '/\\');
Expand Down Expand Up @@ -658,9 +668,12 @@ function file_validate_name_length($file) {
* @param $file
* A Drupal file object.
* @param $extensions
* A string with a space separated
* A string with a space separated list of allowed file extensions, not
* including the period. For example, 'bmp jpg gif png'.
*
* @return
* An array. If the file extension is not allowed, it will contain an error message.
* An array. If the file extension is not allowed, it will contain an error
* message.
*/
function file_validate_extensions($file, $extensions) {
global $user;
Expand Down Expand Up @@ -841,6 +854,14 @@ function file_transfer($source, $headers) {
if (ob_get_level()) {
ob_end_clean();
}

// IE cannot download private files because it cannot store files downloaded
// over https in the browser cache. The problem can be solved by sending
// custom headers to IE. See http://support.microsoft.com/kb/323308/en-us
if (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on')) {
drupal_set_header('Cache-Control: private');
drupal_set_header('Pragma: private');
}

foreach ($headers as $header) {
// To prevent HTTP header injection, we delete new lines that are
Expand Down
1 change: 0 additions & 1 deletion includes/form.inc
@@ -1,5 +1,4 @@
<?php
// $Id: form.inc,v 1.265.2.35 2010/11/04 09:55:29 goba Exp $

/**
* @defgroup forms Form builder functions
Expand Down
1 change: 0 additions & 1 deletion includes/image.gd.inc
@@ -1,5 +1,4 @@
<?php
// $Id: image.gd.inc,v 1.4 2008/01/15 10:17:42 goba Exp $

/**
* @file
Expand Down
5 changes: 3 additions & 2 deletions includes/image.inc
@@ -1,5 +1,4 @@
<?php
// $Id: image.inc,v 1.24.2.1 2010/12/15 14:08:17 goba Exp $

/**
* @file
Expand Down Expand Up @@ -114,7 +113,9 @@ function image_toolkit_invoke($method, $params = array()) {
* 'file_size' - File size in bytes.
*/
function image_get_info($file) {
if (!is_file($file) && !is_uploaded_file($filepath)) {
// Proceed no further if this file doesn't exist. Some web servers (IIS) may
// not pass is_file() for newly uploaded files, so we need two checks here.
if (!is_file($file) && !is_uploaded_file($file)) {
return FALSE;
}

Expand Down
1 change: 0 additions & 1 deletion includes/install.inc
@@ -1,5 +1,4 @@
<?php
// $Id: install.inc,v 1.56.2.4 2009/02/16 10:25:02 goba Exp $

define('SCHEMA_UNINSTALLED', -1);
define('SCHEMA_INSTALLED', 0);
Expand Down
1 change: 0 additions & 1 deletion includes/install.mysql.inc
@@ -1,5 +1,4 @@
<?php
// $Id: install.mysql.inc,v 1.9 2008/01/23 09:59:29 goba Exp $

// MySQL specific install functions

Expand Down
1 change: 0 additions & 1 deletion includes/install.mysqli.inc
@@ -1,5 +1,4 @@
<?php
// $Id: install.mysqli.inc,v 1.12 2008/01/23 09:59:29 goba Exp $

// MySQLi specific install functions

Expand Down
1 change: 0 additions & 1 deletion includes/install.pgsql.inc
@@ -1,5 +1,4 @@
<?php
// $Id: install.pgsql.inc,v 1.6 2007/10/22 15:22:39 dries Exp $

// PostgreSQL specific install functions

Expand Down
1 change: 0 additions & 1 deletion includes/language.inc
@@ -1,5 +1,4 @@
<?php
// $Id: language.inc,v 1.14.2.2 2010/03/22 12:18:04 goba Exp $

/**
* @file
Expand Down
3 changes: 1 addition & 2 deletions includes/locale.inc
@@ -1,5 +1,4 @@
<?php
// $Id: locale.inc,v 1.174.2.14 2010/08/11 19:42:26 goba Exp $

/**
* @file
Expand Down Expand Up @@ -1672,7 +1671,7 @@ function _locale_import_shorten_comments($comment) {
break;
}
}
return substr($comm, 0, -2);
return trim(substr($comm, 0, -2));
}

/**
Expand Down
1 change: 0 additions & 1 deletion includes/lock.inc
@@ -1,5 +1,4 @@
<?php
// $Id: lock.inc,v 1.1.2.4 2010/05/11 09:30:20 goba Exp $

/**
* @file
Expand Down
1 change: 0 additions & 1 deletion includes/mail.inc
@@ -1,5 +1,4 @@
<?php
// $Id: mail.inc,v 1.8.2.8 2010/06/02 12:07:24 goba Exp $

/**
* Compose and optionally send an e-mail message.
Expand Down
13 changes: 7 additions & 6 deletions includes/menu.inc
@@ -1,5 +1,4 @@
<?php
// $Id: menu.inc,v 1.255.2.38 2010/12/09 11:57:18 goba Exp $

/**
* @file
Expand Down Expand Up @@ -72,7 +71,7 @@
*/

/**
* @name Menu flags
* @defgroup menu_flags Menu flags
* @{
* Flags for use in the "type" attribute of menu items.
*/
Expand All @@ -90,8 +89,10 @@ define('MENU_IS_LOCAL_TASK', 0x0080);
*/

/**
* @name Menu item types
* @defgroup menu_item_types Menu item types
* @{
* Definitions for various menu item types.
*
* Menu item definitions provide one of these constants, which are shortcuts for
* combinations of the above flags.
*/
Expand Down Expand Up @@ -135,7 +136,7 @@ define('MENU_DEFAULT_LOCAL_TASK', MENU_IS_LOCAL_TASK | MENU_LINKS_TO_PARENT);
*/

/**
* @name Menu status codes
* @defgroup menu_status_codes Menu status codes
* @{
* Status codes for menu callbacks.
*/
Expand All @@ -150,9 +151,9 @@ define('MENU_SITE_OFFLINE', 4);
*/

/**
* @Name Menu tree parameters
* @defgroup menu_tree_parameters Menu tree parameters
* @{
* Menu tree
* Parameters for a menu tree.
*/

/**
Expand Down
1 change: 0 additions & 1 deletion includes/module.inc
@@ -1,5 +1,4 @@
<?php
// $Id: module.inc,v 1.115.2.5 2010/12/15 14:50:25 goba Exp $

/**
* @file
Expand Down

0 comments on commit e67c4d7

Please sign in to comment.