From 9448af5219d923c1ff1d07d5a54a0edd6dd4d57b Mon Sep 17 00:00:00 2001 From: alphayax Date: Thu, 9 Jun 2016 13:23:59 +0200 Subject: [PATCH] Fix base64 encoding in DiskPartition Model --- freebox/api/v3/models/Storage/DiskPartition.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freebox/api/v3/models/Storage/DiskPartition.php b/freebox/api/v3/models/Storage/DiskPartition.php index 018e8c5..1f4a0c3 100644 --- a/freebox/api/v3/models/Storage/DiskPartition.php +++ b/freebox/api/v3/models/Storage/DiskPartition.php @@ -31,7 +31,7 @@ class DiskPartition extends Model { /** @var string : partition name */ protected $label; - /** @var string (Read-only) : partition mount point (encoded in base64 as explained in fs API) */ + /** @var string (Read-only) : partition mount point */ protected $path; /** @var int (Read-only) : partition size (in bytes) */ @@ -117,7 +117,7 @@ class DiskPartition extends Model { * @return string */ public function getPath() { - return $this->path; + return base64_decode( $this->path); } /**