mirror of
https://github.com/nidebr/as-stats-gui.git
synced 2025-02-20 11:23:18 +08:00
Fix linkgraph.php if ASN name contains double-quotes
This commit is contained in:
parent
b47d219e7d
commit
8847b4ca20
@ -94,6 +94,7 @@ $i = 0;
|
|||||||
foreach ($topas as $as => $traffic) {
|
foreach ($topas as $as => $traffic) {
|
||||||
$asinfo = getASInfo($as);
|
$asinfo = getASInfo($as);
|
||||||
$descr = str_replace(":", "\\:", utf8_decode($asinfo['descr']));
|
$descr = str_replace(":", "\\:", utf8_decode($asinfo['descr']));
|
||||||
|
$descr = str_replace('"', '\\"', $descr);
|
||||||
|
|
||||||
$cmd .= "AREA:as{$as}_{$v6_el}in_bits#{$ascolors[$i]}:\"AS{$as} ({$descr})\\n\"";
|
$cmd .= "AREA:as{$as}_{$v6_el}in_bits#{$ascolors[$i]}:\"AS{$as} ({$descr})\\n\"";
|
||||||
if ($i > 0)
|
if ($i > 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user