mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 08:53:33 +00:00
A `%` column's cell was read as given when absolute, or joined to the CSV's folder or `base`, so a CSV could make dataset.import open a file on another computer (a UNC path or a `file:` URL with a host). Each cell now goes through fileio::document_path, as an image variable's path does when a data set is selected (crates/engine/src/cmd/links.rs:1169-1173), with the CSV's folder or `base` as the document's folder. Paths on another computer or on another network share, devices and URLs are refused before any file is read, with the line, the column and the reason. Absolute local paths, `file:` URLs without a host and relative paths are still read, as image paths are. The params text and docs/mcp.md state the rule, and that relative `%` paths are taken from the CSV's folder at import while relative `@` paths are taken from the document's folder when a data set is selected.