chore: pre-commit
This commit is contained in:
parent
6131aa63fd
commit
03bff35b5e
3 changed files with 850 additions and 886 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -3,7 +3,7 @@ import FileUploaderComponent from "./FileUploader.vue";
|
|||
import { watch } from "vue";
|
||||
|
||||
class FileUploader {
|
||||
static UploadOptions = []
|
||||
static UploadOptions = [];
|
||||
constructor({
|
||||
wrapper,
|
||||
method,
|
||||
|
|
|
|||
|
|
@ -417,7 +417,7 @@ def add_attachments(doctype, name, attachments):
|
|||
|
||||
|
||||
def is_safe_path(path: str) -> bool:
|
||||
if path.startswith(("http://", "https://", "/api/method/")):
|
||||
if path.startswith(("http://", "https://", "/api/method/")):
|
||||
return True
|
||||
|
||||
basedir = frappe.get_site_path()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue