Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 83bc247

Browse files
committed
docs(CHANGELOG.md): add release notes for v1.2.30
1 parent 482a3ae commit 83bc247

File tree

1 file changed

+55
-1
lines changed

1 file changed

+55
-1
lines changed

CHANGELOG.md

+55-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,56 @@
1+
<a name="1.2.30"></a>
2+
# 1.2.30 patronal-resurrection (2016-07-21)
3+
4+
5+
_**Note:** This release contains some security fixes that required breaking changes. Since the
6+
legacy 1.2.x branch is the only version branch that supports IE8, it was necessary to introduce a
7+
couple of low-impact breaking changes in a patch release - something we generally avoid - in order
8+
to make the fixes available to people that still need IE8 support._
9+
10+
## Bug Fixes
11+
12+
- **$compile:**
13+
- secure `link[href]` as a `RESOURCE_URL`s in `$sce`
14+
([f35f334b](https://github.com/angular/angular.js/commit/f35f334bd3197585bdf034f4b6d9ffa3122dac62),
15+
[#14687](https://github.com/angular/angular.js/issues/14687))
16+
- properly sanitize `xlink:href` attribute interoplation
17+
([f2fa1ed8](https://github.com/angular/angular.js/commit/f2fa1ed83d18d4e79a36f8c0db1c2524d762e513),
18+
[2687c261](https://github.com/angular/angular.js/commit/2687c26140585d9e3716f9f559390f5d8d598fdf))
19+
- **ngSanitize:** blacklist the attribute `usemap` as it can be used as a security exploit
20+
([ac0d5286](https://github.com/angular/angular.js/commit/ac0d5286b8931633d774080d6396fb4825d8be33),
21+
[#14903](https://github.com/angular/angular.js/issues/14903))
22+
- **ngAnimate:** do not use event.timeStamp anymore for time tracking
23+
([8d83b563](https://github.com/angular/angular.js/commit/8d83b5633471c847d58f337426fe069797dd49d9),
24+
[#13494](https://github.com/angular/angular.js/issues/13494), [#13495](https://github.com/angular/angular.js/issues/13495))
25+
26+
27+
## Breaking Changes
28+
29+
- **$compile:** due to [f35f334b](https://github.com/angular/angular.js/commit/f35f334bd3197585bdf034f4b6d9ffa3122dac62),
30+
31+
`link[href]` attributes are now protected via `$sce`, which prevents interpolated values that fail
32+
the `RESOURCE_URL` context tests from being used in interpolation. For example if the application is
33+
running at `https://mydomain.org/` then the following will fail:
34+
35+
```html
36+
<link rel="stylesheet" href="{{ 'https://otherdomain.org/unsafe.css' }}" />
37+
```
38+
39+
By default, `RESOURCE_URL` safe URLs are only allowed from the same domain and protocol as the
40+
application document. To use URLs from other domains and/or protocols, you may either whitelist them
41+
using `$sceDelegateProvider.resourceUrlWhitelist(...)` or wrap them into a trusted value by calling
42+
`$sce.trustAsResourceUrl(url)`.
43+
44+
- **ngSanitize:** due to [234053fc](https://github.com/angular/angular.js/commit/234053fc9ad90e0d05be7e8359c6af66be94c094),
45+
46+
The `$sanitize` service will now remove instances of the `usemap` attribute from any elements passed
47+
to it.
48+
49+
This attribute is used to reference another element by `name` or `id`. Since the `name` and `id`
50+
attributes are already blacklisted, a sanitized `usemap` attribute could only reference unsanitized
51+
content, which is a security risk.
52+
53+
154
<a name="1.5.7"></a>
255
# 1.5.7 hexagonal-circumvolution (2016-06-15)
356

@@ -624,7 +677,8 @@ changes section for more information
624677

625678
- **ngSanitize:** due to [234053fc](https://github.com/angular/angular.js/commit/234053fc9ad90e0d05be7e8359c6af66be94c094),
626679

627-
The `$sanitize` service will now remove instances of the `usemap` attribute from any elements passed to it.
680+
The `$sanitize` service will now remove instances of the `usemap` attribute from any elements passed
681+
to it.
628682

629683
This attribute is used to reference another element by `name` or `id`. Since the `name` and `id`
630684
attributes are already blacklisted, a sanitized `usemap` attribute could only reference unsanitized

0 commit comments

Comments
 (0)