filter: require an extra "+" before data
This disambiguates it from control commands
This commit is contained in:
parent
8692240f51
commit
dc141aad45
1 changed files with 7 additions and 0 deletions
|
@ -196,6 +196,13 @@ setfilter(const char *check, const char *data, const char **error)
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (*data != '+') {
|
||||
if (error) *error = "unknown command or data doesn't start with +";
|
||||
return -1;
|
||||
}
|
||||
|
||||
data += 1;
|
||||
|
||||
if (state == FILTER_FILLING) {
|
||||
int dl;
|
||||
unsigned char *d = rb_base64_decode(data, strlen(data), &dl);
|
||||
|
|
Loading…
Reference in a new issue