BUG 6893 PM Al subir en logos imagenes que tienen acentos genera un notice

The problem was with unserialize function, it seems to has problem with its content. however this fields is encoded in base 64 now.
This commit is contained in:
Carlos Pacha
2011-05-20 18:44:24 -04:00
parent 15a447ecad
commit 33aa0b5dce
2 changed files with 3 additions and 3 deletions

View File

@@ -480,7 +480,7 @@ if (isset($G_ENABLE_BLANK_SKIN) && $G_ENABLE_BLANK_SKIN) {
$oPluginRegistry = &PMPluginRegistry::getSingleton();
if ( isset($sFotoSelect) && $sFotoSelect!='' && !(strcmp($sWspaceSelect,SYS_SYS)) ){
$sCompanyLogo = $oPluginRegistry->getCompanyLogo($sFotoSelect);
$sCompanyLogo= "/sys".SYS_SYS."/".SYS_LANG."/".SYS_SKIN."/setup/showLogoFile.php?id=".G::encrypt($sCompanyLogo,"imagen");
$sCompanyLogo= "/sys".SYS_SYS."/".SYS_LANG."/".SYS_SKIN."/setup/showLogoFile.php?id=".G::encrypt(base64_decode($sCompanyLogo),"imagen");
}
else {
$sCompanyLogo = $oPluginRegistry->getCompanyLogo('/images/processmaker.logo.jpg');
@@ -497,4 +497,4 @@ if (isset($G_ENABLE_BLANK_SKIN) && $G_ENABLE_BLANK_SKIN) {
}
break;
}
?>
?>