Skip to content

Commit b154f05

Browse files
committed
Do not match things like web42.example.com, just web42
1 parent 5d8d428 commit b154f05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/cron.d/100-monitor_hd_quota.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function onRunJob() {
116116
$s1 = preg_split('/[\s]+/', $df[$i]);
117117
$s2 = preg_split('/\//', $s1[1]);
118118
$username = $s2[5];
119-
if (substr($username, 0, 3) == 'web') {
119+
if (preg_match('/^web\d+$/', $username)) {
120120
if (isset($data['user'][$username])) {
121121
$data['user'][$username]['used'] += $s1[0];
122122
$data['user'][$username]['soft'] = $options['user'][$username];

0 commit comments

Comments
 (0)