mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
Sanitize UrlRoot in PayButton
This commit is contained in:
parent
aac87539ae
commit
eccbe8e018
@ -19,7 +19,7 @@
|
||||
<template id="template-get-scripts" csp-allow>
|
||||
if (!window.btcpay) {
|
||||
var script = document.createElement('script');
|
||||
script.src='@(Model.UrlRoot)modal/btcpay.js';
|
||||
script.src=@(Safe.Json(Model.UrlRoot + "modal/btcpay.js"));
|
||||
document.getElementsByTagName('head')[0].append(script);
|
||||
}
|
||||
function onBTCPayFormSubmit(event) {
|
||||
|
Loading…
Reference in New Issue
Block a user