BUG 6893 Al subir en logos imagenes que tienen acentos genera un noticei
this issue was fixed, it is not allowed to put this symbol
This commit is contained in:
@@ -37,12 +37,30 @@ try {//ini_set('display_errors','1');
|
||||
die;
|
||||
break;
|
||||
}
|
||||
|
||||
function changeNamelogo($snameLogo){
|
||||
$snameLogo = ereg_replace("[áàâãª]","a",$snameLogo);
|
||||
$snameLogo = ereg_replace("[ÁÀÂÃ]","A",$snameLogo);
|
||||
$snameLogo = ereg_replace("[ÍÌÎ]","I",$snameLogo);
|
||||
$snameLogo = ereg_replace("[íìî]","i",$snameLogo);
|
||||
$snameLogo = ereg_replace("[éèê]","e",$snameLogo);
|
||||
$snameLogo = ereg_replace("[ÉÈÊ]","E",$snameLogo);
|
||||
$snameLogo = ereg_replace("[óòôõº]","o",$snameLogo);
|
||||
$snameLogo = ereg_replace("[ÓÒÔÕ]","O",$snameLogo);
|
||||
$snameLogo = ereg_replace("[úùû]","u",$snameLogo);
|
||||
$snameLogo = ereg_replace("[ÚÙÛ]","U",$snameLogo);
|
||||
$snameLogo = str_replace("ç","c",$snameLogo);
|
||||
$snameLogo = str_replace("Ç","C",$snameLogo);
|
||||
$snameLogo = str_replace("[ñ]","n",$snameLogo);
|
||||
$snameLogo = str_replace("[Ñ]","N",$snameLogo);
|
||||
return ($snameLogo);
|
||||
}
|
||||
|
||||
$sfunction =$_GET['function'];
|
||||
switch($sfunction){
|
||||
case 'replacementLogo':
|
||||
$snameLogo=urldecode($_GET['NAMELOGO']);
|
||||
$snameLogo=trim($snameLogo);
|
||||
$snameLogo=changeNamelogo($snameLogo);
|
||||
G::loadClass('configuration');
|
||||
$oConf = new Configurations;
|
||||
$aConf = Array(
|
||||
|
||||
Reference in New Issue
Block a user