From 79047556ba5671edb7215f8a5471a255d6baa10c Mon Sep 17 00:00:00 2001 From: John Steel Date: Mon, 3 May 2021 12:14:46 -0400 Subject: [PATCH] Fix comment link encoding + Escape chars for links + Don't assume subnets.html --- subnets.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subnets.html b/subnets.html index edcc444..9fda322 100644 --- a/subnets.html +++ b/subnets.html @@ -105,10 +105,10 @@ function recreateTables() function createBookmarkHyperlink() { var link = document.getElementById('saveLink'); if (link) { - link.href = 'subnets.html?network='+inet_ntoa(curNetwork) + link.href = '?network='+inet_ntoa(curNetwork) +'&mask='+curMask +'&division='+binToAscii(nodeToString(rootSubnet)) - +'&comments='+JSON.stringify(curComments); + +'&comments='+encodeURIComponent(JSON.stringify(curComments)); } }