WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Activity Plus
Sanitize filename (5 posts)

  1. buzug
    Member
    Posted 2 years ago #

    Hi !

    Buddypress Activity Plus does not sanitize uploaded files names. Pragmatically, file names that include special characters like apostrophes, or accentuated characters (e.g. : "c'est super l'├ęcologie.jpg") make the process fail.

    I patched /buddypress-activity-plus/lib/external (lines 145-146) this way :

    if ($this->file->save($uploadDirectory . sanitize_file_name($filename) . '.' . $ext)){
                return array('success'=>true, 'file'=> sanitize_file_name($filename) . '.' . $ext);

    Would you mind merging this fix to the main stream ?

    Bye,
    Buzug

    http://wordpress.org/extend/plugins/buddypress-activity-plus/

  2. klipari
    Member
    Posted 2 years ago #

    Hey there!

    A note has been sent to the developer of this plugin :)

    Thanks!

  3. buzug
    Member
    Posted 2 years ago #

    Hi @klipari, will (s)he come here to keep me informed ?

  4. klipari
    Member
    Posted 2 years ago #

    I'll post as soon as I hear anything :)

    He may or may not stop in here, but I did leave the link, so he very well may update you himself :)

  5. vebailovity
    Member
    Posted 2 years ago #

    Hi there,

    The latest plugin version (v1.4.1) should have this issue fixed. Thanks for the suggestion!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic