WordPress.org

Support

Support » Plugins and Hacks » [Bug fix] Unreadable files

[Bug fix] Unreadable files

  • jrf
    Participant

    @jrf

    Hiya,

    Very useful tool. I found a small bug, please find the fix for it below. Would be great if you could incorporate it into the codebase.

    Find line 796:

    $contents = file( $this->path . $file );
    foreach ( $contents as $n => $line ) {

    Replace with:

    $contents = is_readable( $this->path . $file ) ? @file( $this->path . $file ) : false;
    if( $contents !== false ) {
    	foreach ( $contents as $n => $line ) {

    Obviously the newly added if() will still need to be closed round line 829 and you may want to adjust the indentation of the foreach content 😉

    Hope this helps!

    Smile,
    Juliette

    http://wordpress.org/extend/plugins/exploit-scanner/

Viewing 1 replies (of 1 total)
  • jrf
    Participant

    @jrf

    Hmm… the recent new version (1.3.3) hasn’t yet incorporated this fix….

Viewing 1 replies (of 1 total)
  • The topic ‘[Bug fix] Unreadable files’ is closed to new replies.