ragflow/rag/nlp
Mathias Panzenböck 9bcccadebd
Remove use of eval() from search.py (#4887)
Use `json.loads()` instead.

### What problem does this PR solve?

Using `eval()` can lead to code injections. I think this loads a JSON
field, right? If yes, why is this done via `eval()` and not
`json.loads()`?

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-02-12 13:15:38 +08:00
..
__init__.py Fix divided by zero issue. (#4784) 2025-02-08 10:36:26 +08:00
query.py Fix too long query exception. (#4729) 2025-02-06 10:11:52 +08:00
rag_tokenizer.py Removing invisible chars before tokenization. (#4233) 2024-12-26 11:48:16 +08:00
search.py Remove use of eval() from search.py (#4887) 2025-02-12 13:15:38 +08:00
surname.py Update info (#1005) 2024-05-31 09:53:04 +08:00
synonym.py Added kb_id filter to knn. Fix #3458 (#3513) 2024-11-20 20:53:30 +08:00
term_weight.py Fix errors detected by Ruff (#3918) 2024-12-08 14:21:12 +08:00