WordPress.org

Ready to get started?Download WordPress

Forums

WP Plugin Security Check
[Small bug+fix] file_get_contents vs directories (1 post)

  1. jrf
    Member
    Posted 1 year ago #

    Hiya,

    Very helpful little plugin this. Thank you for that!

    Just though I'd let you know that with WP_DEBUG on, it produces a lot of warnings as it will try and treat directories as files.

    This can easily be fixed. Just change line 64:
    if( file_exists( $realfile ) ){
    to:
    if( file_exists( $realfile ) && !is_dir( $realfile ) ){

    Hope this helps & keep up the good work!

    Smile,
    Juliette

    http://wordpress.org/plugins/wp-plugin-security-check/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic