Skip to content

Commit 71c39f2

Browse files
Merge pull request #26 from BeAPI/add_arobase
Add `@` character to the sanitized characters list
2 parents 466d0bd + 9cefdc3 commit 71c39f2

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 2.0.8 - 02 Apr 2026
4+
* Add `@` character to the sanitized characters list
5+
36
## 2.0.7 - 20 Sept 2022
47
* Non Latin characters in filename are handled
58

bea-sanitize-filename.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/*
33
Plugin Name: BEA - Sanitize Filename
4-
Version: 2.0.7
4+
Version: 2.0.8
55
Plugin URI: https://github.com/BeAPI/bea-sanitize-filename
66
Description: Remove all punctuation and accents from the filename of uploaded files.
77
Author: Be API
@@ -38,7 +38,7 @@
3838
*/
3939
function bea_sanitize_file_name_chars( $special_chars = array() ) {
4040
// Special caracters
41-
$special_chars = array_merge( array( '', '', '', '', '«', '»', '', '', '', '', '©' ), $special_chars );
41+
$special_chars = array_merge( array( ‘’’, ‘’’, ‘”’, ‘”’, ‘«’, ‘»’, ‘‹’, ‘›’, ‘—‘, ‘€’, ‘©’, ‘@’ ), $special_chars );
4242
/**
4343
* Accentued caracters
4444
* @see https://github.com/BeAPI/bea-sanitize-filename/issues/8

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: uploads, sanitize, media
55
Requires at least: 4.0
66
Requires php: 5.6
77
Tested up to: 6.1
8-
Stable tag: 2.0.7
8+
Stable tag: 2.0.8
99
License: GPLv3 or later
1010
License URI: https://github.com/BeAPI/bea-sanitize-filename/blob/master/LICENSE.md
1111

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

5959
== Changelog ==
6060

61+
= 2.0.8 - 02 Apr 2026 =
62+
- Add `@` character to the sanitized characters list
63+
6164
= 2.0.7 - 20 Sept 2022 =
6265
- Non Latin characters in filename are handled
6366

0 commit comments

Comments
 (0)