mirror of https://gerrit.osmocom.org/gapk
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:
parent
ac967d20fd
commit
8966846f3e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue