Reject {b:1|blah} signs
This commit is contained in:
parent
b59c381177
commit
aa09c0e753
16
src/Misc.cpp
16
src/Misc.cpp
@ -628,14 +628,16 @@ int splitsign(const char* str, char * type)
|
||||
if (str[0]=='{' && (str[1]=='c' || str[1]=='t' || str[1]=='b'))
|
||||
{
|
||||
const char* p=str+2;
|
||||
if(str[2]==':' && str[3]>='0' && str[3]<='9')
|
||||
{
|
||||
p=str+4;
|
||||
while (*p>='0' && *p<='9')
|
||||
p++;
|
||||
if(str[1] != 'b') {
|
||||
if(str[2]==':' && str[3]>='0' && str[3]<='9')
|
||||
{
|
||||
p=str+4;
|
||||
while (*p>='0' && *p<='9')
|
||||
p++;
|
||||
}
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
else if(str[1] != 'b')
|
||||
return 0;
|
||||
|
||||
if (*p=='|')
|
||||
{
|
||||
|
Reference in New Issue
Block a user