Skip to content

Commit

Permalink
Added a fix to allow IPv6 addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
xbeaudouin committed Nov 2, 2022
1 parent ea7c8f1 commit ed35369
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data-pick.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ function update_source_step1(dataid,name,portid,ifAlias,ifDesc,ifIndex)
var newlocation;
var fullpath;

// Replace semi-colons by underscores to permit IPv6 addresses
var name = name.replace(/:/g,'_');

var rra_path = <?php echo js_escape('./'); ?>+name+'/port-id';

if (typeof window.opener == "object") {
Expand Down

0 comments on commit ed35369

Please sign in to comment.