本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
anoopmb
/
frappe
關注
1
收藏
0
複製
0
程式碼
問題
0
合併請求
0
版本發佈
0
Wiki
活動
瀏覽代碼
Encode content if not encoded before hashing
version-14
Aditya Hase
7 年之前
父節點
635a48c337
當前提交
234fca90a3
共有
1 個檔案被更改
,包括
2 行新增
和
0 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
frappe/utils/file_manager.py
+ 2
- 0
frappe/utils/file_manager.py
查看文件
@@ -301,6 +301,8 @@ def get_file_path(file_name):
return file_path
def get_content_hash(content):
if isinstance(content, text_type):
content = content.encode()
return hashlib.md5(content).hexdigest()
def get_file_name(fname, optional_suffix):
Write
Preview
Loading…
取消
儲存