WordPress.org

Support

Support » Plugins and Hacks » BuddyPress Activity Plus » [Plugin: BuddyPress Activity Plus] Sanitize filename

[Plugin: BuddyPress Activity Plus] Sanitize filename

  • 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/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: BuddyPress Activity Plus] Sanitize filename’ is closed to new replies.
Skip to toolbar