Skip to content

Commit

Permalink
security fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ninsbl committed Oct 18, 2024
1 parent b5ce482 commit 60a40f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/raster/r.timeseries.locations/r.timeseries.locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,7 @@ def main():
"v.in.ogr",
flags="o",
# Until GDAL 3.6 is available UID and PWD have to be provided in the connection string
input=options["locations_url"]
+ f";Tables={schema}.{layer};UID={os.environ.get('MSSQLSPATIAL_UID')};PWD={os.environ.get('MSSQLSPATIAL_PWD')}",
input=options["locations_url"] + f";Tables={schema}.{layer}",
layer=layer if schema == "dbo" else f"{schema}.{layer}",
where=where + " AND " + options["where"] if options["where"] else where,
output=locations,
Expand Down

0 comments on commit 60a40f0

Please sign in to comment.