From 8164434505e4292e5d584eebbf7b05b403d9c07b Mon Sep 17 00:00:00 2001 From: webchick Date: Sat, 21 Jan 2012 10:52:40 -0800 Subject: Issue #278425 by andypost, droplet, OnkelTem, chx, c960657, drewish, kotnik, realityloop: Change notice for: Using basename() is not locale safe. --- includes/updater.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/updater.inc') diff --git a/includes/updater.inc b/includes/updater.inc index 363c6ebff..9801629b1 100644 --- a/includes/updater.inc +++ b/includes/updater.inc @@ -141,7 +141,7 @@ class Updater { return FALSE; } foreach ($info_files as $info_file) { - if (drupal_substr($info_file->filename, 0, -5) == basename($directory)) { + if (drupal_substr($info_file->filename, 0, -5) == drupal_basename($directory)) { // Info file Has the same name as the directory, return it. return $info_file->uri; } @@ -163,7 +163,7 @@ class Updater { * The name of the project. */ public static function getProjectName($directory) { - return basename($directory); + return drupal_basename($directory); } /** -- cgit v1.2.3