Anti SQL Injection, how it works on samp
#3

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.
Reply


Messages In This Thread
Anti SQL Injection, how it works on samp - by Lester23 - 16.04.2017, 17:37
Re: Anti SQL Injection, how it works on samp - by Vince - 16.04.2017, 17:49
Re: Anti SQL Injection, how it works on samp - by Lester23 - 16.04.2017, 18:08
Re: Anti SQL Injection, how it works on samp - by DRIFT_HUNTER - 16.04.2017, 18:36

Forum Jump:


Users browsing this thread: 1 Guest(s)