mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 15:22:38 -04:00
fix 781
This commit is contained in:
parent
b6461a1af5
commit
f2cee505f5
2 changed files with 6 additions and 0 deletions
|
|
@ -394,6 +394,8 @@ class ApacheParser(object):
|
|||
if not arg.startswith("/"):
|
||||
# Normpath will condense ../
|
||||
arg = os.path.normpath(os.path.join(self.root, arg))
|
||||
else:
|
||||
arg = os.path.normpath(arg)
|
||||
|
||||
# Attempts to add a transform to the file if one does not already exist
|
||||
if os.path.isdir(arg):
|
||||
|
|
|
|||
|
|
@ -98,6 +98,9 @@ class ComplexParserTest(util.ParserTest):
|
|||
def test_include_fullpath(self):
|
||||
self.verify_fnmatch(os.path.join(self.config_path, "test_fnmatch.conf"))
|
||||
|
||||
def test_include_fullpath_trailing_slash(self):
|
||||
self.verify_fnmatch(self.config_path + "//")
|
||||
|
||||
def test_include_variable(self):
|
||||
self.verify_fnmatch("../complex_parsing/${fnmatch_filename}")
|
||||
|
||||
|
|
@ -106,5 +109,6 @@ class ComplexParserTest(util.ParserTest):
|
|||
self.verify_fnmatch("test_*.onf", False)
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main() # pragma: no cover
|
||||
|
|
|
|||
Loading…
Reference in a new issue