Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix crash on viewing exif with the following data:

Manav Rathi72ba8bcd6426
diff --git a/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsx b/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsx
index bdcb2a7c1d..20157caab7 100644
--- a/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsx
+++ b/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsx
@@ -566,7 +566,8 @@ const RawExif: React.FC<RawExifProps> = ({
} else if (
tag &&
typeof tag == "object" &&
- "description" in tag
+ "description" in tag &&
+ typeof tag.description == "string"
) {
description = tag.description;
}