Utf8 convert
This commit is contained in:
@@ -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 H繪nsi 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;
|
||||
|
||||
Reference in New Issue
Block a user