rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | diff --git a/system/core/init/service.cpp b/system/core/init/service.cpp |
| 2 | index ac4070c..a040632 100644 |
| 3 | --- a/system/core/init/service.cpp |
| 4 | +++ b/system/core/init/service.cpp |
| 5 | @@ -860,13 +860,16 @@ void ServiceParser::EndSection() { |
| 6 | } |
| 7 | |
| 8 | bool ServiceParser::IsValidName(const std::string& name) const { |
| 9 | - if (name.size() > 16) { |
| 10 | + if (name.size() > 92) { |
| 11 | return false; |
| 12 | } |
| 13 | - for (const auto& c : name) { |
| 14 | + |
| 15 | + /* |
| 16 | + for (const auto& c : name) { |
| 17 | if (!isalnum(c) && (c != '_') && (c != '-')) { |
| 18 | return false; |
| 19 | } |
| 20 | - } |
| 21 | + } |
| 22 | + */ |
| 23 | return true; |
| 24 | } |