Title: Code needs this fix
Last modified: November 25, 2020

---

# Code needs this fix

 *  [scott8035](https://wordpress.org/support/users/scott8035/)
 * (@scott8035)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/code-needs-this-fix/)
 * Hi. While running your plugin I ran into a “bug” in the sense that it failed 
   on some bogus data. This code, inserted after line 343 in file better-search-
   replace/includes/class-bsr-db.php, fixes that:
 *     ```
       if ( $key[0] === "\0" ) {
           continue;
       }
       ```
   
 * Thanks for the great plugin.

The topic ‘Code needs this fix’ is closed to new replies.

 * ![](https://ps.w.org/better-search-replace/assets/icon-256x256.png?rev=2706527)
 * [Better Search Replace](https://wordpress.org/plugins/better-search-replace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-search-replace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-search-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/better-search-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-search-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-search-replace/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [scott8035](https://wordpress.org/support/users/scott8035/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/code-needs-this-fix/)
 * Status: not resolved