]> git.pld-linux.org Git - packages/asciidoc.git/blob - asciidoc-safe.patch
- asciidoc system dir is safe
[packages/asciidoc.git] / asciidoc-safe.patch
1 --- asciidoc-8.2.7/asciidoc.py.orig     2008-07-03 01:15:11.000000000 +0200
2 +++ asciidoc-8.2.7/asciidoc.py  2008-09-02 21:39:38.172995689 +0200
3 @@ -140,7 +140,7 @@
4          directory = os.path.dirname(document.infile)
5      elif directory == '':
6          directory = '.'
7 -    return not safe() or file_in(fname, directory)
8 +    return not safe() or file_in(fname, directory) or file_in(fname, "/usr/share/asciidoc")
9  
10  # Return file name which must reside in the parent file directory.
11  # Return None if file is not found or not safe.
This page took 0.058552 seconds and 3 git commands to generate.