We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent beeddb6 commit 48589a6Copy full SHA for 48589a6
backend/apps/db/db.py
@@ -688,6 +688,7 @@ def check_sql_read(sql: str, ds: CoreDatasource | AssistantOutDsSchema):
688
def checkParams(extraParams: str, illegalParams: List[str]):
689
kvs = extraParams.split('&')
690
for kv in kvs:
691
- k, v = kv.split('=')
692
- if k in illegalParams:
693
- raise HTTPException(status_code=500, detail=f'Illegal Parameter: {k}')
+ if kv and '=' in kv:
+ k, v = kv.split('=')
+ if k in illegalParams:
694
+ raise HTTPException(status_code=500, detail=f'Illegal Parameter: {k}')
0 commit comments