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() {
|
function createBookmarkHyperlink() {
|
||||||
var link = document.getElementById('saveLink');
|
var link = document.getElementById('saveLink');
|
||||||
if (link) {
|
if (link) {
|
||||||
link.href = 'subnets.html?network='+inet_ntoa(curNetwork)
|
link.href = '?network='+inet_ntoa(curNetwork)
|
||||||
+'&mask='+curMask
|
+'&mask='+curMask
|
||||||
+'&division='+binToAscii(nodeToString(rootSubnet))
|
+'&division='+binToAscii(nodeToString(rootSubnet))
|
||||||
+'&comments='+JSON.stringify(curComments);
|
+'&comments='+encodeURIComponent(JSON.stringify(curComments));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user