Skip to content

Commit

Permalink
Encode in base64 scan_path to avoid json encapsulation problems with …
Browse files Browse the repository at this point in the history
…slashes
  • Loading branch information
Valentin Hamon committed Dec 14, 2016
1 parent 2f1dae4 commit 1bb60e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/scanconfig.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function toJson()
return '{
"scanconfig_id": ' . $this->id . ',
"scan_name": "' . $this->scan_name . '",
"scan_path": "' . $this->scan_path . '",
"scan_path": "' . base64_encode($this->scan_path) . '",
"scan_options": "' . base64_encode($this->scan_options) . '"
}';
}
Expand Down

0 comments on commit 1bb60e9

Please sign in to comment.