mirror of
https://github.com/ollama/ollama.git
synced 2026-04-23 01:05:47 +02:00
Replace custom normalizePath function with stdlib path.Clean. Use path.IsAbs and path.Dir for cleaner, more robust code. Add sibling escape detection to prevent traversal attacks like "tools/a/b/../../../etc" which normalizes to "etc" (a sibling).