View Issue Details

IDProjectCategoryView StatusLast Update
0006833mantisbtbugtrackerpublic2009-06-23 15:28
Reporterclaudiu_cristea Assigned Tograngeway  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.0 
Fixed in Version1.2.0rc1 
Summary0006833: Incorrect handling of some UTF-8 strings
Description

The PHP function strtoupper() is used in some scripts but this function cannot convert some multibyte strings to uppercase. Consider using mb_strtoupper() to have a correct uppercase representation.

Example:
In manage_config_email_page.php, line 0000064:0000129

Additional Information

Scripts affected:
adm_permissions_report.php [~31]
manage_config_work_threshold_page.php [0000021:0000042]
manage_config_workflow_page.php [0000075:0000149]
manage_config_email_page.php [0000064:0000129]

TagsNo tags attached.
Attached Files
patch.txt (1,235 bytes)   
Index: manage_config_email_page.php
===================================================================
RCS file: /usr/local/cvsroot/grafitsolutions/public_html/mantis/manage_config_email_page.php,v
retrieving revision 1.1
diff -u -r1.1 manage_config_email_page.php
--- manage_config_email_page.php	11 Mar 2006 15:15:28 -0000	1.1
+++ manage_config_email_page.php	12 Mar 2006 15:14:36 -0000
@@ -126,7 +126,7 @@
 		global $t_project;
 		$t_access_levels = explode_enum_string( config_get( 'access_levels_enum_string' ) );
 		echo '<table class="width100">';
-		echo '<tr><td class="form-title" colspan="' . ( count( $t_access_levels ) + 7 ) . '">' . strtoupper( $p_section_name ) . '</td></tr>' . "\n";
+		echo '<tr><td class="form-title" colspan="' . ( count( $t_access_levels ) + 7 ) . '">' . mb_strtoupper( $p_section_name, lang_get( 'charset' ) ) . '</td></tr>' . "\n";
 		echo '<tr><td class="form-title" width="30%" rowspan="2">' . lang_get( 'message' ) . '</td>';
 		echo'<td class="form-title" style="text-align:center" rowspan="2">&nbsp;' . lang_get( 'issue_reporter' ) . '&nbsp;</td>';
 		echo '<td class="form-title" style="text-align:center" rowspan="2">&nbsp;' . lang_get( 'issue_handler' ) . '&nbsp;</td>';
patch.txt (1,235 bytes)   

Activities

grangeway

grangeway

2009-04-14 08:28

reporter   ~0021514

Fixed in git