Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 2.0.8 - 02 Apr 2026
* Add `@` character to the sanitized characters list

## 2.0.7 - 20 Sept 2022
* Non Latin characters in filename are handled

Expand Down
4 changes: 2 additions & 2 deletions bea-sanitize-filename.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
Plugin Name: BEA - Sanitize Filename
Version: 2.0.7
Version: 2.0.8
Plugin URI: https://github.com/BeAPI/bea-sanitize-filename
Description: Remove all punctuation and accents from the filename of uploaded files.
Author: Be API
Expand Down Expand Up @@ -38,7 +38,7 @@
*/
function bea_sanitize_file_name_chars( $special_chars = array() ) {
// Special caracters
$special_chars = array_merge( array( '’', '‘', '“', '”', '«', '»', '‹', '›', '—', '€', '©' ), $special_chars );
$special_chars = array_merge( array( ‘’’, ‘’’, ‘”’, ‘”’, ‘«’, ‘»’, ‘‹’, ‘›’, ‘—‘, ‘€’, ‘©’, ‘@’ ), $special_chars );
/**
* Accentued caracters
* @see https://github.com/BeAPI/bea-sanitize-filename/issues/8
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: uploads, sanitize, media
Requires at least: 4.0
Requires php: 5.6
Tested up to: 6.1
Stable tag: 2.0.7
Stable tag: 2.0.8
License: GPLv3 or later
License URI: https://github.com/BeAPI/bea-sanitize-filename/blob/master/LICENSE.md

Expand Down Expand Up @@ -58,6 +58,9 @@ You just need to activate on each site.

== Changelog ==

= 2.0.8 - 02 Apr 2026 =
- Add `@` character to the sanitized characters list

= 2.0.7 - 20 Sept 2022 =
- Non Latin characters in filename are handled

Expand Down
Loading