Prevent path traversal for improved security
* Update theme.py fix bugs * Update theme.py fix bugs * change var names --------- Co-authored-by: binary-husky <qingxu.fu@outlook.com>