From 6da34f5984d1c731e69f9c893eefc194f37fd4e6 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 17 May 2024 09:53:58 +0200 Subject: [PATCH] MOBILE-3403 core: Avoid performing requests to embedded untreated URLs --- .../pages/issued-badge/issued-badge.html | 2 +- .../badges/pages/user-badges/user-badges.html | 2 +- .../conversation-info/conversation-info.html | 2 +- .../messages/pages/discussion/discussion.html | 2 +- .../group-conversations.html | 2 +- .../addon-mod-data-field-picture.html | 4 +- src/addons/notifications/pages/list/list.html | 6 +- .../pages/notification/notification.html | 6 +- .../components/course-image/course-image.html | 2 +- src/core/components/mod-icon/mod-icon.html | 2 +- .../user-avatar/core-user-avatar.html | 4 +- src/core/directives/external-content.ts | 125 ++++++++++-------- src/core/directives/format-text.ts | 46 ++++--- .../pages/course-summary/course-summary.html | 2 +- .../features/course/pages/index/index.html | 2 +- .../core-courses-course-list-item.html | 4 +- .../global-search-result.html | 2 +- .../viewer/components/image/image.html | 2 +- 18 files changed, 114 insertions(+), 103 deletions(-) diff --git a/src/addons/badges/pages/issued-badge/issued-badge.html b/src/addons/badges/pages/issued-badge/issued-badge.html index 157d7b1f9..5f06dc1d6 100644 --- a/src/addons/badges/pages/issued-badge/issued-badge.html +++ b/src/addons/badges/pages/issued-badge/issued-badge.html @@ -17,7 +17,7 @@ - + {{ 'addon.badges.expired' | translate }} diff --git a/src/addons/badges/pages/user-badges/user-badges.html b/src/addons/badges/pages/user-badges/user-badges.html index edc263c99..db9110499 100644 --- a/src/addons/badges/pages/user-badges/user-badges.html +++ b/src/addons/badges/pages/user-badges/user-badges.html @@ -20,7 +20,7 @@ - +

{{ badge.name }}

diff --git a/src/addons/messages/components/conversation-info/conversation-info.html b/src/addons/messages/components/conversation-info/conversation-info.html index f18c17a89..33b092794 100644 --- a/src/addons/messages/components/conversation-info/conversation-info.html +++ b/src/addons/messages/components/conversation-info/conversation-info.html @@ -19,7 +19,7 @@
-

diff --git a/src/addons/messages/pages/discussion/discussion.html b/src/addons/messages/pages/discussion/discussion.html index 91f99b7b2..0524b379a 100644 --- a/src/addons/messages/pages/discussion/discussion.html +++ b/src/addons/messages/pages/discussion/discussion.html @@ -5,7 +5,7 @@

- diff --git a/src/addons/messages/pages/group-conversations/group-conversations.html b/src/addons/messages/pages/group-conversations/group-conversations.html index db43ceb5c..6bfa58349 100644 --- a/src/addons/messages/pages/group-conversations/group-conversations.html +++ b/src/addons/messages/pages/group-conversations/group-conversations.html @@ -85,7 +85,7 @@ [attr.aria-label]="conversation.name"> - diff --git a/src/addons/mod/data/fields/picture/component/addon-mod-data-field-picture.html b/src/addons/mod/data/fields/picture/component/addon-mod-data-field-picture.html index 36136e9a2..aa506f62f 100644 --- a/src/addons/mod/data/fields/picture/component/addon-mod-data-field-picture.html +++ b/src/addons/mod/data/fields/picture/component/addon-mod-data-field-picture.html @@ -13,8 +13,8 @@ - diff --git a/src/addons/notifications/pages/list/list.html b/src/addons/notifications/pages/list/list.html index 7dc5ec95c..ec1beac1a 100644 --- a/src/addons/notifications/pages/list/list.html +++ b/src/addons/notifications/pages/list/list.html @@ -41,15 +41,15 @@ [profileUrl]="notification.profileimageurlfrom" [fullname]="notification.userfromfullname" [userId]="notification.useridfrom">
- +
-
- +
diff --git a/src/addons/notifications/pages/notification/notification.html b/src/addons/notifications/pages/notification/notification.html index c6305eda8..48c8d4e9d 100644 --- a/src/addons/notifications/pages/notification/notification.html +++ b/src/addons/notifications/pages/notification/notification.html @@ -16,15 +16,15 @@
- +
-
- +
diff --git a/src/core/components/course-image/course-image.html b/src/core/components/course-image/course-image.html index a9e8d0ead..fee483a9d 100644 --- a/src/core/components/course-image/course-image.html +++ b/src/core/components/course-image/course-image.html @@ -1,4 +1,4 @@

diff --git a/src/core/features/viewer/components/image/image.html b/src/core/features/viewer/components/image/image.html index b3ba23c73..ef485fcb6 100644 --- a/src/core/features/viewer/components/image/image.html +++ b/src/core/features/viewer/components/image/image.html @@ -2,7 +2,7 @@
- +