[Commits] [wesnoth/wesnoth] bfa5a4: Accept ".." in file paths everywhere

GitHub noreply at github.com
Sat May 6 08:56:03 UTC 2017


  Branch: refs/heads/rel_paths
  Home:   https://github.com/wesnoth/wesnoth
  Commit: bfa5a4e80f3e0d038c0e2efde6cd4581f050d12a
      https://github.com/wesnoth/wesnoth/commit/bfa5a4e80f3e0d038c0e2efde6cd4581f050d12a
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-05-06 (Sat, 06 May 2017)

  Changed paths:
    M src/filesystem_boost.cpp
    M src/game_config_manager.cpp
    M src/scripting/lua_fileops.cpp

  Log Message:
  -----------
  Accept ".." in file paths everywhere

This accepts ".." without escaping the sandbox by first resolving it and
failing if the result begins in "..". Only then is the relative path
resolved to an absolute path.





More information about the Commits mailing list