Utf8 convert

This commit is contained in:
2023-01-10 18:29:32 +02:00
parent 71b759232c
commit 90b9c8325e
3572 changed files with 35191 additions and 395614 deletions
+3 -3
View File
@@ -3467,8 +3467,8 @@ class upload {
$this->log .= '- file name body prepend : ' . $this->file_name_body_pre . '<br />';
}
if ($this->file_safe_name) { // formats the name
$this->file_dst_name_body = strtr($this->file_dst_name_body, ' 鬚禳鱉顫 獺璽瓊瓣疇癟癡矇礙禱穫穩簾簿簽簷籀繫繭繹繪羅繳羶羹羸藩', 'SZszYAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy');
$this->file_dst_name_body = strtr($this->file_dst_name_body, array('' => 'TH', '' => 'th', '' => 'DH', '' => 'dh', '' => 'ss', '' => 'OE', '' => 'oe', '' => 'AE', '' => 'ae', '' => 'u'));
$this->file_dst_name_body = strtr($this->file_dst_name_body, 'ŠŽšžŸÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖØÙÚÛÜÝà áâãäåçèéêëìíîïñòóôõöøùúûüýÿ', 'SZszYAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy');
$this->file_dst_name_body = strtr($this->file_dst_name_body, array('Гћ' => 'TH', 'Гѕ' => 'th', 'Гђ' => 'DH', 'Г°' => 'dh', 'Гџ' => 'ss', 'Е’' => 'OE', 'Е“' => 'oe', 'Г†' => 'AE', 'Г¦' => 'ae', 'Вµ' => 'u'));
$this->file_dst_name_body = preg_replace(array('/\s/', '/\.[\.]+/', '/[^\w_\.\-]/'), array('_', '.', ''), $this->file_dst_name_body);
$this->log .= '- file name safe format<br />';
}
@@ -4058,7 +4058,7 @@ class upload {
// unsharp mask
if ($gd_version >= 2 && $this->image_unsharp && is_numeric($this->image_unsharp_amount) && is_numeric($this->image_unsharp_radius) && is_numeric($this->image_unsharp_threshold)) {
// Unsharp Mask for PHP - version 2.1.1
// Unsharp mask algorithm by Torstein Hnsi 2003-07.
// Unsharp mask algorithm by Torstein HГёnsi 2003-07.
// Used with permission
// Modified to support alpha transparency
if ($this->image_unsharp_amount > 500) $this->image_unsharp_amount = 500;