Skip to content
Snippets Groups Projects
Commit 05357ce6 authored by Angie Byron's avatar Angie Byron
Browse files

#587706 by dalin: Fixed language_initialize() needs to clean up ['q'] just...

#587706 by dalin: Fixed language_initialize() needs to clean up ['q'] just like drupal_path_initialize() does.
parent a1828b23
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment