Hi,
When I try to edit a banner, I get a large mysql error. However, it still seems to update. On dumping the keys and values, there is one that seems to slip in there and the q parameter comes out as:
0='%s'
I'm not entirely sure how it slips by the check (I'm assuming it ends up checking if there is a position 0?) but ensuring that key!=0 seems to do the trick.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | banner_module.patch | 1.64 KB | plj |
Comments
Comment #1
gatta commentedI tried to change the status of a banner from enabled to disabled and I got the following MySQL error:
The 0='' added is similar to what BTMash described. But the banner status was not being changed.
Comment #2
plj commentedI've made a quick and dirty fix for this problem for those who, like me, are already familiar with Banner and need some working stuff Right Now.
But I think that most people should abandon Banner and migrate to Ad as soon as possible.