Title: Bug
Last modified: August 30, 2016

---

# Bug

 *  Resolved [StorkWEB](https://wordpress.org/support/users/storkweb/)
 * (@storkweb)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-112/)
 * Hi,
    I just installed your plugin, great job but you missed a small bug :
 * in db.php on line 46 the prepare() function requires a second parameter
 * `$wpdb->prepare("SELECT * FROM $table_name")`
 * I just corrected this by passing an empty string
 * `$wpdb->prepare("SELECT * FROM $table_name","")`
 * Works fine now 😉
 * Thanks again
    Didier
 * [https://wordpress.org/plugins/zws-wp-comments-anti-spam-hyperlink-blocker/](https://wordpress.org/plugins/zws-wp-comments-anti-spam-hyperlink-blocker/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [StorkWEB](https://wordpress.org/support/users/storkweb/)
 * (@storkweb)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-112/#post-6258384)
 * Also on line 69
 *  Plugin Author [5reyreyr5ey5rey5re5rey5reyr](https://wordpress.org/support/users/zaziork/)
 * (@zaziork)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-112/#post-6258516)
 * Hello, great spot, thanks for that, much appreciated!
 * I’ll update and push the fix out shortly.
 * On my systems the bug didn’t manifest as an error, but just a PHP warning in 
   the logs, which is due to WordPress taking the decision to require at least one
   additional parameter on the prepare statement, to mitigate against erroneous 
   code when evaluating user submitted data.
 * There’s no security issue here as the table name variable is hard-coded, however
   I should have added the empty string to prevent the warning.
 * Thanks again for taking the time to point this out!
 *  Plugin Author [5reyreyr5ey5rey5re5rey5reyr](https://wordpress.org/support/users/zaziork/)
 * (@zaziork)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-112/#post-6258578)
 * **Bug Status**: Closed.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Bug’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/zws-wp-comments-anti-spam-hyperlink-
   blocker_2e2e61.svg)
 * [ZWS Wordpress Anti Spam & URL Filter](https://wordpress.org/plugins/zws-wp-comments-anti-spam-hyperlink-blocker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/zws-wp-comments-anti-spam-hyperlink-blocker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/zws-wp-comments-anti-spam-hyperlink-blocker/)
 * [Active Topics](https://wordpress.org/support/plugin/zws-wp-comments-anti-spam-hyperlink-blocker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/zws-wp-comments-anti-spam-hyperlink-blocker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/zws-wp-comments-anti-spam-hyperlink-blocker/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [5reyreyr5ey5rey5re5rey5reyr](https://wordpress.org/support/users/zaziork/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/bug-112/#post-6258578)
 * Status: resolved