Skip to content

Commit eef6d90

Browse files
committed
Merge branch '1.4.x' of https://github.com/evolution-cms/evolution into 1.4.x
2 parents 0a902da + fb8c71a commit eef6d90

5 files changed

Lines changed: 1147 additions & 1138 deletions

File tree

assets/lib/Helpers/Assets.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function registerScript($name, $params)
9696
$out = '';
9797
if (!isset($this->modx->loadedjscripts[$name])) {
9898
$src = $params['src'];
99-
$remote = strpos($src, "http") !== false;
99+
$remote = strpos($src, 'http') === 0 || strpos($src, '//') === 0;
100100
if (!$remote) {
101101
$src = $this->modx->config['site_url'] . $src;
102102
if (!$this->fs->checkFile($params['src'])) {

0 commit comments

Comments
 (0)