ragflow/rag
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
..
app Fix too long integer for Table. (#4651) 2025-01-26 12:54:58 +08:00
llm Fix Gemini chat issue. (#4757) 2025-02-07 12:00:19 +08:00
nlp Remove use of eval() from search.py (#4887) 2025-02-12 13:15:38 +08:00
res Format file format from Windows/dos to Unix (#1949) 2024-08-15 09:17:36 +08:00
svr Rebuild graph when it's out of time. (#4607) 2025-01-23 17:26:20 +08:00
utils Make the update script shorter. (#4854) 2025-02-10 18:18:49 +08:00
__init__.py Update comments (#4569) 2025-01-21 20:52:28 +08:00
benchmark.py Refactor embedding batch_size (#3825) 2024-12-03 16:22:39 +08:00
raptor.py Make infinity adapt to condition exist. (#4657) 2025-01-26 18:45:36 +08:00
settings.py Tagging (#4426) 2025-01-09 17:07:21 +08:00