mirror of
https://github.com/trufflesecurity/xsshunter
synced 2024-11-10 06:44:13 +00:00
Fixingnulladditionajs (#28)
* removing auth on image load * chagning links * fixing allowing null js * going through all the sh --------- Co-authored-by: counter <counter@counters-MacBook-Air.local>
This commit is contained in:
parent
930f0caeeb
commit
ae09855e64
2 changed files with 3 additions and 1 deletions
2
api.js
2
api.js
|
@ -697,6 +697,8 @@ async function set_up_api_server(app) {
|
||||||
// data: for inline extra JS.
|
// data: for inline extra JS.
|
||||||
if(req.body.chainload_uri) {
|
if(req.body.chainload_uri) {
|
||||||
user.additionalJS = req.body.chainload_uri;
|
user.additionalJS = req.body.chainload_uri;
|
||||||
|
}else if (req.body.chainload_uri === ""){
|
||||||
|
user.additionalJS = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(req.body.send_alert_emails !== undefined) {
|
if(req.body.send_alert_emails !== undefined) {
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<li class="nav-item mt-5">
|
<li class="nav-item mt-5">
|
||||||
<a target="_blank" href="https://trufflesecurity.com/" class="nav-link">
|
<a target="_blank" href="https://trufflesecurity.com/" class="nav-link">
|
||||||
<i class="fas fab fa-power-off"></i>
|
<i class="fas fab fa-power-off"></i>
|
||||||
<p>Powered by TruffleSec</p>
|
<p>Truffle Security Co.</p>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in a new issue