From d02eec55fb70a0d000f5c96cb55db122694f3eb5 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 16 Mar 2011 15:53:11 +0000 Subject: [PATCH] Trim extra whitespace from category name --- importexport/inc/class.importexport_helper_functions.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/importexport/inc/class.importexport_helper_functions.inc.php b/importexport/inc/class.importexport_helper_functions.inc.php index 112a4c92c9..ee3919bdda 100755 --- a/importexport/inc/class.importexport_helper_functions.inc.php +++ b/importexport/inc/class.importexport_helper_functions.inc.php @@ -161,6 +161,7 @@ class importexport_helper_functions { $cat_names = is_array( $_cat_names ) ? $_cat_names : explode( ',', $_cat_names ); foreach ( $cat_names as $cat_name ) { + $cat_name = trim($cat_name); if ( $cat_name == '' ) continue; // Handle any IDs that slip in if ( is_numeric($cat_name) && categories::id2name((int)$cat_name)) {