Title: Minor localhost strong passwords script issue.
Last modified: September 1, 2016

---

# Minor localhost strong passwords script issue.

 *  [Mitch](https://wordpress.org/support/users/lowest/)
 * (@lowest)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/minor-localhost-strong-passwords-script-issue/)
 * There’s a small URL issue on localhosted websites in the error console [[click]](http://i.imgur.com/K08MXdv.png).
 * Hope this will be fixed in the next release. Keep up the great work!
 * [https://wordpress.org/plugins/better-wp-security/](https://wordpress.org/plugins/better-wp-security/)

Viewing 1 replies (of 1 total)

 *  [caseyctg](https://wordpress.org/support/users/caseyctg/)
 * (@caseyctg)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/minor-localhost-strong-passwords-script-issue/#post-7701740)
 * I just ran into this issue myself. I fixed it on my end but hopefully they’ll
   fix it within the core…
 * **Affected file:**
    better-wp-security/core/class-itsec-lib.php
 * **Affected function within that file:**
 *     ```
       public static function get_module_path( $file ) {
   
       $path = str_replace( ITSEC_Core::get_plugin_dir(), '', dirname( $file ) );
       $path = ltrim( str_replace( '\\', '/', $path ), '/' );
   
       $url_base = trailingslashit( plugin_dir_url( ITSEC_Core::get_plugin_file() ) );
   
       //$url_base is returning https://yoururl/wp-content/plugins/better-wp-security/
       //fix...not returning correct path for strong passwords module...
       //check if path is for the strong-passwords module and correct if so
       //you'll need to change this to the xampp directory you posted
       if($path == "C:/inetpub/yourapplicationpath/wp-content/plugins/better-wp-security/core/modules/strong-passwords"){
       return trailingslashit( $url_base . "core/modules/strong-passwords" );
       }else{
       return trailingslashit( $url_base . $path );
       }
   
       }
       ```
   
 * I know its bad practice to hack the core, but I needed a fix without waiting…

Viewing 1 replies (of 1 total)

The topic ‘Minor localhost strong passwords script issue.’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [caseyctg](https://wordpress.org/support/users/caseyctg/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/minor-localhost-strong-passwords-script-issue/#post-7701740)
 * Status: not resolved