diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-03-12 23:21:40 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-03-12 23:21:40 -0400 |
commit | 5dd4db176a167c981086007c3c7bc245df4a3a9a (patch) | |
tree | fa3acf2675c7930a841f5599806c88b44d62eb34 /usr/local | |
parent | 86d5553e66ec8ddf2b7a56601e99018c537613ae (diff) | |
download | pfsense-5dd4db176a167c981086007c3c7bc245df4a3a9a.zip pfsense-5dd4db176a167c981086007c3c7bc245df4a3a9a.tar.gz |
Base 64 decode the rrd data before writing out
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/diag_backup.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index ffccf67..ef8becd 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -253,7 +253,7 @@ if ($_POST) { if($config['rrddata']) { foreach($config['rrddata']['rrddatafile'] as $rrd) { $rrd_fd = fopen("{$g['vardb_path']}/rrd/{$rrd['filename']}", "w"); - fwrite($rrd_fd, $rrd['data']); + fwrite($rrd_fd, base64_decode($rrd['data'])); fclose($rrd_fd); } unset($config['rrddata']); |