summaryrefslogtreecommitdiff
path: root/includes/locale.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/locale.inc')
-rw-r--r--includes/locale.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/locale.inc b/includes/locale.inc
index f9c1481d1..c8b451eef 100644
--- a/includes/locale.inc
+++ b/includes/locale.inc
@@ -1158,6 +1158,10 @@ function _locale_import_parse_quoted($string) {
function _locale_parse_js_file($filepath) {
global $language;
+ // The file path might contain a query string, so make sure we only use the
+ // actual file.
+ $parsed_url = drupal_parse_url($filepath);
+ $filepath = $parsed_url['path'];
// Load the JavaScript file.
$file = file_get_contents($filepath);