diff --git a/concrete/controllers/backend/file.php b/concrete/controllers/backend/file.php index 7f2b62b5dfd..94fa737c991 100644 --- a/concrete/controllers/backend/file.php +++ b/concrete/controllers/backend/file.php @@ -790,15 +790,15 @@ protected function checkRemoteURlsToImport(array $urls) try { $url = Url::createFromUrl($u); } catch (RuntimeException $x) { - throw new UserMessageException(t('The URL "%s" is not valid: %s', $u, $x->getMessage())); + throw new UserMessageException(h(t('The URL "%s" is not valid: %s', $u, $x->getMessage()))); } $scheme = (string)$url->getScheme(); if ($scheme === '') { - throw new UserMessageException(t('The URL "%s" is not valid.', $u)); + throw new UserMessageException(h(t('The URL "%s" is not valid.', $u))); } $host = trim((string)$url->getHost()); if (in_array(strtolower($host), ['', '0', 'localhost'], true)) { - throw new UserMessageException(t('The URL "%s" is not valid.', $u)); + throw new UserMessageException(h(t('The URL "%s" is not valid.', $u))); } // If we've already validated this hostname just skip it. @@ -813,7 +813,7 @@ protected function checkRemoteURlsToImport(array $urls) foreach ($ipFormatBlocks as $block) { if (preg_match($block, $host) !== 0) { - throw new UserMessageException(t('The URL "%s" is not valid.', $u)); + throw new UserMessageException(h(t('The URL "%s" is not valid.', $u))); } } @@ -828,7 +828,7 @@ protected function checkRemoteURlsToImport(array $urls) } if ($ip !== null && $ip->getRangeType() !== IPRangeType::T_PUBLIC) { - throw new UserMessageException(t('The URL "%s" is not valid.', $u)); + throw new UserMessageException(h(t('The URL "%s" is not valid.', $u))); } $validIps[$host] = $ip->toString(); diff --git a/concrete/elements/groups/roles_list.php b/concrete/elements/groups/roles_list.php index 7b10e8b78d0..051f2eccd62 100644 --- a/concrete/elements/groups/roles_list.php +++ b/concrete/elements/groups/roles_list.php @@ -81,7 +81,7 @@ - "/> @@ -162,13 +162,13 @@ var addRole = function (role) { $rolesContainer.find("tbody").append(_.template($("#ccm-roles-row").html())(role)); - $rolesContainer.find("select[name=defaultRole]").append($("