Hi all.
I am developing a custom module and I am getting this error. Could anyone point me to where to look at to find and fix it? Thanks.
Hi all.
I am developing a custom module and I am getting this error. Could anyone point me to where to look at to find and fix it? Thanks.
is that the exact error message? because I can not find that error message using
JonSweet16:dolibarr jonbendtsen$ grep -ir "Access refused to unknown by SQL or Script injection protection" *
is that error message in your own module?
Are you sanitizing your SQL input? There is a function for it
Hi. thanks for your reply. That error was thrown by Visual Studio Code when trying to enable debugging. I thought it was forwarded from what it received from the application.
As I did not found any real cause (I nearly emptied my code and still got the same outcome) I closed VS Code and reopened it. I stopped receiving it.
What puzzles me is that the error was quite specific about the dolibarr environment even pointing to a class as I recall. I did not expected that an external tool were able to check security parameters of the running application so I assumed that the error were coming from the application itself. As I do not have the error anymore I am not able to give more details just in case they were useful for anyone. Sorry.