Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Commit

Permalink
Drupal 6.1; including #227608 (SA-2008-18)
Browse files Browse the repository at this point in the history
  • Loading branch information
goba committed Feb 27, 2008
1 parent 021f59b commit d2e3d17
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
9 changes: 5 additions & 4 deletions CHANGELOG.txt
@@ -1,8 +1,9 @@
// $Id: CHANGELOG.txt,v 1.253.2.4 2008-02-13 15:39:26 goba Exp $

Drupal 6.1-dev, xxxx-xx-xx (development version)
-----------------------
// $Id: CHANGELOG.txt,v 1.253.2.5 2008-02-27 19:44:44 goba Exp $

Drupal 6.1, 2008-02-27
----------------------
- fixed a variety of small bugs.
- fixed a security issue (Cross site scripting), see SA-2008-018

Drupal 6.0, 2008-02-13
----------------------
Expand Down
4 changes: 2 additions & 2 deletions includes/common.inc
@@ -1,5 +1,5 @@
<?php
// $Id: common.inc,v 1.756.2.6 2008-02-27 11:52:08 goba Exp $
// $Id: common.inc,v 1.756.2.7 2008-02-27 19:44:44 goba Exp $

/**
* @file
Expand Down Expand Up @@ -577,7 +577,7 @@ function drupal_error_handler($errno, $message, $filename, $line, $context) {
return;
}

if ($errno & (E_ALL)) {
if ($errno & (E_ALL ^ E_NOTICE)) {
$types = array(1 => 'error', 2 => 'warning', 4 => 'parse error', 8 => 'notice', 16 => 'core error', 32 => 'core warning', 64 => 'compile error', 128 => 'compile warning', 256 => 'user error', 512 => 'user warning', 1024 => 'user notice', 2048 => 'strict warning', 4096 => 'recoverable fatal error');

// For database errors, we want the line number/file name of the place that
Expand Down
5 changes: 3 additions & 2 deletions misc/drupal.js
@@ -1,4 +1,4 @@
// $Id: drupal.js,v 1.41.2.1 2008-02-06 12:18:04 goba Exp $
// $Id: drupal.js,v 1.41.2.2 2008-02-27 19:44:44 goba Exp $

var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes': {}, 'locale': {} };

Expand Down Expand Up @@ -51,7 +51,8 @@ Drupal.checkPlain = function(str) {
str = String(str);
var replace = { '&': '&amp;', '"': '&quot;', '<': '&lt;', '>': '&gt;' };
for (var character in replace) {
str = str.replace(character, replace[character]);
var regex = new RegExp(character, 'g');
str = str.replace(regex, replace[character]);
}
return str;
};
Expand Down
4 changes: 2 additions & 2 deletions modules/node/node.pages.inc
@@ -1,5 +1,5 @@
<?php
// $Id: node.pages.inc,v 1.28 2008-02-03 19:26:10 goba Exp $
// $Id: node.pages.inc,v 1.28.2.1 2008-02-27 19:44:44 goba Exp $

/**
* @file
Expand All @@ -11,7 +11,7 @@
* Menu callback; presents the node editing form, or redirects to delete confirmation.
*/
function node_page_edit($node) {
drupal_set_title($node->title);
drupal_set_title(check_plain($node->title));
return drupal_get_form($node->type .'_node_form', $node);
}

Expand Down
4 changes: 2 additions & 2 deletions modules/system/system.module
@@ -1,5 +1,5 @@
<?php
// $Id: system.module,v 1.585.2.7 2008-02-13 15:39:27 goba Exp $
// $Id: system.module,v 1.585.2.8 2008-02-27 19:44:44 goba Exp $

/**
* @file
Expand All @@ -9,7 +9,7 @@
/**
* The current system version.
*/
define('VERSION', '6.1-dev');
define('VERSION', '6.1');

/**
* Core API compatibility.
Expand Down

0 comments on commit d2e3d17

Please sign in to comment.