Fix comment link encoding
+ Escape chars for links + Don't assume subnets.html
This commit is contained in:
parent
3c3908d9d1
commit
79047556ba
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user