Skip to content

Commit

Permalink
Fixed security problems
Browse files Browse the repository at this point in the history
Fixed following security vulnerabilities:
CWE-209
CWE-7
  • Loading branch information
Xabi08YT authored Nov 14, 2023
1 parent 5342317 commit 8d2f1f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def show_results():
return "OK !",200
except Exception as e:
print("[STDERR] > "+str(e))
return e
return "Internal server error",500


@srv.get("/")
Expand Down Expand Up @@ -188,4 +188,4 @@ def init(conf,db):
global cfgSRV, DBSRV
cfgSRV = conf
DBSRV = db
return
return

0 comments on commit 8d2f1f4

Please sign in to comment.