Files
open-webui/src/lib/components/chat/FileNav
Classic298 46ea826e01 refac: keep rendered diagrams and SVG on same-origin resources (#30271)
Mermaid diagrams and the shared SVG sanitizer now accept only same-origin and data: references. Image URLs, class styles and directive config are checked on the parsed diagram before it renders, and the sanitizer drops attribute values and stylesheet rules that point at another origin. use elements keep local #id references only.

SVGPanZoom and the SVG file preview call the shared sanitizer instead of keeping their own configs, so SVG artifacts and uploaded SVG files follow the same rule. Uploaded SVGs that reference external sprites now render those parts blank, which is the point of the change.

A diagram that references an external resource now reports an error instead of rendering, and an SVG artifact keeps everything except the rules that reference one.
2026-09-21 15:15:28 -04:00
..
2026-09-08 20:34:42 -04:00
2026-03-06 20:12:37 -06:00
2026-08-22 09:13:13 -04:00
2026-09-08 20:44:23 -04:00
2026-09-08 16:54:15 -04:00
2026-08-13 15:38:25 -06:00
2026-09-08 16:49:54 -04:00
2026-08-13 14:50:43 -06:00
2026-08-13 15:38:25 -06:00
2026-03-06 20:12:37 -06:00
2026-09-03 20:22:32 -04:00
2026-08-13 15:20:59 -06:00
2026-08-25 16:52:31 -04:00
2026-09-03 20:22:32 -04:00