Update sbx/b.py
Browse files
sbx/b.py
CHANGED
|
@@ -30,9 +30,9 @@ def get_log_content():
|
|
| 30 |
# 读取文件内容
|
| 31 |
with open(file_path, 'r', encoding='utf-8') as file:
|
| 32 |
content = file.read()
|
| 33 |
-
|
| 34 |
# return jsonify({"content": content})
|
| 35 |
-
return
|
| 36 |
|
| 37 |
except PermissionError:
|
| 38 |
return jsonify({"error": "Permission denied to read the file"}), 403
|
|
|
|
| 30 |
# 读取文件内容
|
| 31 |
with open(file_path, 'r', encoding='utf-8') as file:
|
| 32 |
content = file.read()
|
| 33 |
+
decoded_content = urllib.parse.unquote(content)
|
| 34 |
# return jsonify({"content": content})
|
| 35 |
+
return decoded_content
|
| 36 |
|
| 37 |
except PermissionError:
|
| 38 |
return jsonify({"error": "Permission denied to read the file"}), 403
|