mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-23 04:36:50 +00:00
Escape QDN vars and prefix with underscores.
This commit is contained in:
@@ -40,12 +40,12 @@ function handleResponse(event, response) {
|
||||
}
|
||||
|
||||
function buildResourceUrl(service, name, identifier, path) {
|
||||
if (qdnContext == "render") {
|
||||
if (_qdnContext == "render") {
|
||||
url = "/render/" + service + "/" + name;
|
||||
if (path != null) url = url.concat((path.startsWith("/") ? "" : "/") + path);
|
||||
if (identifier != null) url = url.concat("?identifier=" + identifier);
|
||||
}
|
||||
else if (qdnContext == "gateway") {
|
||||
else if (_qdnContext == "gateway") {
|
||||
url = "/" + service + "/" + name;
|
||||
if (identifier != null) url = url.concat("/" + identifier);
|
||||
if (path != null) url = url.concat((path.startsWith("/") ? "" : "/") + path);
|
||||
@@ -329,10 +329,10 @@ else if (document.attachEvent) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
qortalRequest({
|
||||
action: "QDN_RESOURCE_DISPLAYED",
|
||||
service: qdnService,
|
||||
name: qdnName,
|
||||
identifier: qdnIdentifier,
|
||||
path: qdnPath
|
||||
service: _qdnService,
|
||||
name: _qdnName,
|
||||
identifier: _qdnIdentifier,
|
||||
path: _qdnPath
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user