Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions conf/default/web.conf.default
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ expose_process_log = no
reprocess_tasks = no
# Allow to reprocess failed processing tasks
reprocess_failed_processing = no
# Allows you to define URL splitter, "," is default
url_splitter = ,
# Allows you to define URL splitter (for example comma). Empty value disables splitting
url_splitter =
# Limit number of files extracted from archive in demux.py
demux_files_limit = 10

Expand Down
3 changes: 2 additions & 1 deletion web/submission/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,8 @@ def index(request, task_id=None, resubmit_hash=None):
if task_category in ("url", "dlnexec"):
if not samples:
return render(request, "error.html", {"error": "You specified an invalid URL!"})
for url in samples.split(web_conf.general.url_splitter):
urls = samples.split(web_conf.general.url_splitter) if web_conf.general.url_splitter else [samples]
Comment thread
MMikePL marked this conversation as resolved.
Outdated
for url in urls:
url = url.replace("hxxps://", "https://").replace("hxxp://", "http://").replace("[.]", ".")
if task_category == "dlnexec":
path, content, sha256 = process_new_dlnexec_task(url, route, options, custom)
Expand Down