Fix comment link encoding

+ Escape chars for links
+ Don't assume subnets.html
This commit is contained in:
John Steel 2021-05-03 12:14:46 -04:00
parent 3c3908d9d1
commit 79047556ba
No known key found for this signature in database
GPG Key ID: DCD1F9A42EBF7B82

View File

@ -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));
}
}