diff options
author | Andrey Andreev <narf@devilix.net> | 2016-08-11 14:55:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-11 14:55:33 +0200 |
commit | b7b5ee6bee6395460a7f628cb16f75b0777ea44b (patch) | |
tree | 784991ea4ddcef07c660c071c9fb652d5003ba00 /system/libraries/Javascript.php | |
parent | d864eb4828a1a4c327df1af4e84328a8dfd0be43 (diff) | |
parent | 669cc5f881970ec3cc19b57f4da0382c7d8f5542 (diff) |
Merge pull request #4764 from butane/uri_scheme_case
URI schemes are not case-sensitive
Diffstat (limited to 'system/libraries/Javascript.php')
-rw-r--r-- | system/libraries/Javascript.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Javascript.php b/system/libraries/Javascript.php index dcf933779..2ddab38ee 100644 --- a/system/libraries/Javascript.php +++ b/system/libraries/Javascript.php @@ -650,11 +650,11 @@ class CI_Javascript { $this->_javascript_location = $this->CI->config->item('javascript_location'); } - if ($relative === TRUE OR strpos($external_file, 'http://') === 0 OR strpos($external_file, 'https://') === 0) + if ($relative === TRUE OR stripos($external_file, 'http://') === 0 OR stripos($external_file, 'https://') === 0) { $str = $this->_open_script($external_file); } - elseif (strpos($this->_javascript_location, 'http://') !== FALSE) + elseif (stripos($this->_javascript_location, 'http://') !== FALSE) { $str = $this->_open_script($this->_javascript_location.$external_file); } |