v0.7.10 - Fixed api errors in accepting : in subscriptions
This commit is contained in:
@@ -135,11 +135,11 @@ static int validate_subscription_id(const char* sub_id) {
|
||||
return 0; // Empty or too long
|
||||
}
|
||||
|
||||
// Check for valid characters (alphanumeric, underscore, hyphen)
|
||||
// Check for valid characters (alphanumeric, underscore, hyphen, colon)
|
||||
for (size_t i = 0; i < len; i++) {
|
||||
char c = sub_id[i];
|
||||
if (!((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') ||
|
||||
(c >= '0' && c <= '9') || c == '_' || c == '-')) {
|
||||
(c >= '0' && c <= '9') || c == '_' || c == '-' || c == ':')) {
|
||||
return 0; // Invalid character
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user