summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-05-07 17:56:13 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-05-07 17:56:13 +0200
commit15d134124bde5fa8693c640a3db000a9bc47d51f (patch)
tree6350883bd7de85ac4b9e07e3b5124bd6ee2a5890 /lib
parent9f2f2821919ed770fd4ede17f27a22d6c17dc374 (diff)
downloadnextcloud-server-15d134124bde5fa8693c640a3db000a9bc47d51f.tar.gz
nextcloud-server-15d134124bde5fa8693c640a3db000a9bc47d51f.zip
Validate the quota value to be a correct value
Diffstat (limited to 'lib')
-rw-r--r--lib/private/helper.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php
index 144ccbfe228..ec798817840 100644
--- a/lib/private/helper.php
+++ b/lib/private/helper.php
@@ -413,6 +413,8 @@ class OC_Helper {
if (preg_match('#([kmgtp]?b?)$#si', $str, $matches) && !empty($bytes_array[$matches[1]])) {
$bytes *= $bytes_array[$matches[1]];
+ } else {
+ return false;
}
$bytes = round($bytes);