16.04.2017, 18:08
Yeah... figured out I have %s vulnerability and it crashes my server :S
mind helping me please? I added this below the last #include
I tried to add this static const antisqlinjection[][] = {
"'",
"#",
"`",
"%"
};
and this to public OnDialogResponse, right below public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
for(new i; i < sizeof(antisqlinjection); i++)
{
if(strfind(inputtext, antisqlinjection[i], true) != -1)
{
SCM(playerid, COLOR_YELLOW, " There are also allowed characters.");
return 1;
}
}
I can make another thread if needed, but please help :S the compiler just crashes.
mind helping me please? I added this below the last #include
I tried to add this static const antisqlinjection[][] = {
"'",
"#",
"`",
"%"
};
and this to public OnDialogResponse, right below public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
for(new i; i < sizeof(antisqlinjection); i++)
{
if(strfind(inputtext, antisqlinjection[i], true) != -1)
{
SCM(playerid, COLOR_YELLOW, " There are also allowed characters.");
return 1;
}
}
I can make another thread if needed, but please help :S the compiler just crashes.