From 8966846f3e7a9d18503b9b8213e78ab5795103e2 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Wed, 30 Dec 2015 10:56:13 +0100 Subject: 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 --- libgsmhr/fetch_sources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgsmhr/fetch_sources.py') diff --git a/libgsmhr/fetch_sources.py b/libgsmhr/fetch_sources.py index 6a3cf00..a65fff2 100755 --- a/libgsmhr/fetch_sources.py +++ b/libgsmhr/fetch_sources.py @@ -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() -- cgit v1.2.3