Fix: Use safe template variables for JS package_name/module_name
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
name: GDM
|
||||
package_name: gommi_downloader_manager
|
||||
version: '0.1.10'
|
||||
version: '0.1.11'
|
||||
description: FlaskFarm 범용 다운로더 큐 - YouTube, 애니24, 링크애니, Anilife 지원
|
||||
developer: projectdx
|
||||
home: https://gitea.yommi.duckdns.org/projectdx/gommi_downloader_manager
|
||||
|
||||
@@ -408,7 +408,7 @@
|
||||
|
||||
function refreshList(silent) {
|
||||
$.ajax({
|
||||
url: `/${PACKAGE_NAME}/ajax/${MODULE_NAME}/list`,
|
||||
url: `/${{ arg['package_name'] }}/ajax/${{ arg['module_name'] }}/list`,
|
||||
type: 'POST',
|
||||
dataType: 'json',
|
||||
data: {},
|
||||
@@ -566,7 +566,7 @@
|
||||
// Socket Init
|
||||
try {
|
||||
if (typeof io !== 'undefined') {
|
||||
const socket = io.connect(`/${PACKAGE_NAME}/queue`);
|
||||
const socket = io.connect(`/${{ arg['package_name'] }}/queue`);
|
||||
socket.on('download_status', function(data) {
|
||||
updateDownloadCard(data);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user