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 committed by John Steel
parent 04c07d13fe
commit 93a4f0eb1d
No known key found for this signature in database
GPG Key ID: EA905C8A46530B3C

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