diff options
Diffstat (limited to 'modules/hostserv/hs_request.cpp')
-rw-r--r-- | modules/hostserv/hs_request.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/hostserv/hs_request.cpp b/modules/hostserv/hs_request.cpp index 1156d0538..dac9fc738 100644 --- a/modules/hostserv/hs_request.cpp +++ b/modules/hostserv/hs_request.cpp @@ -69,9 +69,7 @@ class CommandHSRequest final { bool isvalidchar(char c) { - if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || c == '.' || c == '-') - return true; - return false; + return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || c == '.' || c == '-'; } public: |