I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 853d3099 authored by zzz's avatar zzz
Browse files

i2ptunnel: Fix js confirm for delete button

parent 56440059
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
// NOTE: Do the header carefully so there is no whitespace before the <?xml... line // NOTE: Do the header carefully so there is no whitespace before the <?xml... line
response.setHeader("X-Frame-Options", "SAMEORIGIN"); response.setHeader("X-Frame-Options", "SAMEORIGIN");
response.setHeader("Content-Security-Policy", "default-src 'self'; style-src 'self' 'unsafe-inline'"); // edit pages need script for the delete button 'are you sure'
response.setHeader("Content-Security-Policy", "default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'");
response.setHeader("X-XSS-Protection", "1; mode=block"); response.setHeader("X-XSS-Protection", "1; mode=block");
%><%@page pageEncoding="UTF-8" %><%@page pageEncoding="UTF-8"
...@@ -10,7 +11,7 @@ ...@@ -10,7 +11,7 @@
%><%@page contentType="text/html" import="net.i2p.i2ptunnel.web.EditBean" %><%@page contentType="text/html" import="net.i2p.i2ptunnel.web.EditBean"
%><% %><%
String tun = request.getParameter("tunnel"); String tun = request.getParameter("tunnel");
if (tun != null) { if (tun != null) {
try { try {
int curTunnel = Integer.parseInt(tun); int curTunnel = Integer.parseInt(tun);
if (EditBean.staticIsClient(curTunnel)) { if (EditBean.staticIsClient(curTunnel)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment