mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-15 00:07:25 -05:00
[processing] fixed minor saga file issue
This commit is contained in:
parent
73dc9c479d
commit
2e3dfbae32
@ -383,7 +383,7 @@ class SagaAlgorithm(GeoAlgorithm):
|
||||
if layer:
|
||||
filename = str(layer.name())
|
||||
else:
|
||||
filename = os.path.basename(filename)
|
||||
filename = os.path.basename(source)
|
||||
validChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:"
|
||||
filename = ''.join(c for c in filename if c in validChars)
|
||||
if len(filename) == 0:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user