HTML: harden the path resolution
HTML: harden the path resolution

"Fixes" the /../-issue, and avoids trying to open directories.

KristianLyng/vagent2,KristianLyng/vagent2,KristianLyng/vagent2,KristianLyng/vagent2,KristianLyng/vagent2,KristianLyng/vagent2,KristianLyng/vagent2