From 05357ce6f73ba73941e060d6e8e801d011e89698 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 7 Mar 2010 07:33:17 +0000 Subject: #587706 by dalin: Fixed language_initialize() needs to clean up ['q'] just like drupal_path_initialize() does. --- includes/language.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/language.inc b/includes/language.inc index d31928269..52b5bd6ce 100644 --- a/includes/language.inc +++ b/includes/language.inc @@ -342,7 +342,7 @@ function language_from_default() { * - The path without the prefix on success, the given path otherwise. */ function language_url_split_prefix($path, $languages) { - $args = empty($path) ? array() : explode('/', $path); + $args = empty($path) ? array() : explode('/', trim($path, '/')); $prefix = array_shift($args); // Search prefix within enabled languages. -- cgit v1.2.3