2010-08-13 Sergio Martin <sergio.martin@artica.es>

* include/functions.php: Fixed a bug to generate the image
	in string2image whenn the string contains a sharp (#)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3138 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2010-08-13 08:30:19 +00:00
parent f4d3e5a905
commit 1bba5fec9f
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-08-13 Sergio Martin <sergio.martin@artica.es>
* include/functions.php: Fixed a bug to generate the image
in string2image whenn the string contains a sharp (#)
2010-08-12 Sergio Martin <sergio.martin@artica.es>
* extensions/agents_modules.php: Change the status of the agents (the first

View File

@ -1107,6 +1107,8 @@ function string2image($string, $width, $height, $fontsize = 3,
$file_url = 'attachment/string2image-'.$string.'.gif';
imagegif($rotated, $file_url);
imagedestroy($rotated);
$file_url = str_replace('#','%23',$file_url);
return $file_url;
}
?>