exifreader 4.43.0 → 4.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/dist/exif-reader.js +1 -1
- package/dist/exif-reader.js.map +1 -1
- package/package.json +2 -2
- package/src/utils.js +18 -1
- package/src/xmp-namespaces.js +95 -13
- package/src/xmp-tags.js +45 -13
package/README.md
CHANGED
|
@@ -215,12 +215,13 @@ markup. Never insert them into a page as HTML (for example through `innerHTML`)
|
|
|
215
215
|
without escaping or sanitizing them first, otherwise a crafted image could lead
|
|
216
216
|
to cross-site scripting. Use `textContent`, your framework's escaping, or a
|
|
217
217
|
sanitizer such as DOMPurify when displaying metadata. The property names inside
|
|
218
|
-
a tag value come from the image too, and a
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
218
|
+
a tag value come from the image too, and a tag whose name is `__proto__` is kept
|
|
219
|
+
under that name as a regular property, so it does not replace the prototype of
|
|
220
|
+
the object holding it. A value parsed from an XMP `rdf:value` element that holds
|
|
221
|
+
child elements other than a list is returned as an object without a prototype.
|
|
222
|
+
Such an object has no inherited methods, and copying it into an object of your
|
|
223
|
+
own with `Object.assign` or a deep merge helper without filtering the keys could
|
|
224
|
+
let a crafted image replace that object's prototype.
|
|
224
225
|
|
|
225
226
|
#### Grouping
|
|
226
227
|
|