Skip to content

Commit 7f966da

Browse files
authored
1 parent 890c27f commit 7f966da

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bin/v-add-web-domain-redirect

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ if [ -n "$path" ]; then
9797
lastchr=${path#${path%?}}
9898
if [ "$lastchr" = "/" ]; then
9999
requesturi=1
100+
redirect=${redirect:0:-1}
100101
fi
101102
else
102103
requesturi=1

web/inc/main.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,9 @@ function humanize_usage_size($usage, $round = 2) {
365365
$display_usage = number_format($usage, $round);
366366
}
367367
if (strlen($display_usage) > 4) {
368-
return number_format($usage, $round - 1);
368+
if (is_float($display_usage)) {
369+
return number_format($usage, $round - 1);
370+
}
369371
}
370372
return $display_usage;
371373
}

0 commit comments

Comments
 (0)