Menu

#6 mod_security breaks PHP QR Code

2.0.0
open
nobody
None
5
2020-10-02
2020-10-02
Joseph
No

Just moved webhosting from Godaddy to Bluehost and now PHP QR Code's generation gets flagged and killed by mod_security for some reason.

"Not Acceptable!

An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security."

I'm trying to work with them to get it to work again as we use the qrcode function in our POS system. Not sure what is making it freak out..

I have found if I use QRcode::png("https://site.com"); it works, but adding www. makes it not function, so at first I thought well I'll just use str_replace and get rid of the "www.", however this does not work either. Not sure if it is the length of the request, or what. The normal parameters I pass to the QRCode function are similar to this:

http://www.site.com/blah/blah/index.php?func=myfunc&myparam=1234&myparam2=1234

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.