libgsmhr/fetch_sources: Only use the filename and not any path

There shouldn't be any but somebody might be nasty :p

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2015-12-30 10:56:13 +01:00
parent ac967d20fd
commit 8966846f3e
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ def get_subfile_data(data, filename):
def process_file(z, e):
fh = open(e.filename.lower(), 'w')
fh = open(os.path.basename(e.filename.lower()), 'w')
d = z.read(e).replace('\r','')
fh.write(d)
fh.close()