summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_backup.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-03-12 23:21:40 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-03-12 23:21:40 -0400
commit5dd4db176a167c981086007c3c7bc245df4a3a9a (patch)
treefa3acf2675c7930a841f5599806c88b44d62eb34 /usr/local/www/diag_backup.php
parent86d5553e66ec8ddf2b7a56601e99018c537613ae (diff)
downloadpfsense-5dd4db176a167c981086007c3c7bc245df4a3a9a.zip
pfsense-5dd4db176a167c981086007c3c7bc245df4a3a9a.tar.gz
Base 64 decode the rrd data before writing out
Diffstat (limited to 'usr/local/www/diag_backup.php')
-rwxr-xr-xusr/local/www/diag_backup.php2
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']);
OpenPOWER on IntegriCloud