Skip to content

Commit 28b18cb

Browse files
committed
Fix wrong validation of profile field length
1 parent 2cf739b commit 28b18cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qa-include/plugins/qa-filter-basic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function filter_profile(&$profile, &$errors, $user, $oldprofile)
118118
foreach (array_keys($profile) as $field) {
119119
// ensure fields are not NULL
120120
$profile[$field] = (string)$profile[$field];
121-
$this->validate_field_length($errors, $profile, $field, 0, QA_DB_MAX_CONTENT_LENGTH);
121+
$this->validate_field_length($errors, $profile, $field, 0, QA_DB_MAX_PROFILE_CONTENT_LENGTH);
122122
}
123123
}
124124

0 commit comments

Comments
 (0)