diff --git a/ubercart/uc_store/uc_store.module b/ubercart/uc_store/uc_store.module index 7251163..8737b93 100644 --- a/ubercart/uc_store/uc_store.module +++ b/ubercart/uc_store/uc_store.module @@ -2065,6 +2065,7 @@ function uc_add_js($data = NULL, $type = 'module', $scope = 'header', $defer = F */ function uc_referer_check($urls) { global $base_path; + global $language; $http_referer = uc_referer_uri(); @@ -2086,6 +2087,8 @@ function uc_referer_check($urls) { return FALSE; } + $referer['path'] = str_replace($language->prefix . '/', '', $referer['path']); + // Convert any path aliases. $path = drupal_get_normal_path(substr($referer['path'], strlen($base_path)));