View Issue Details

IDProjectCategoryView StatusLast Update
0007545mantisbtadministrationpublic2007-05-08 03:42
Reportercybot Assigned Tozakman  
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Product Version1.1.0a1 
Fixed in Version1.1.0a3 
Summary0007545: config values are not escaped
Description

html special chars are not escaped in config vlaues when printed out in adm_config_report.php

Additional Information

patch attached

it took me some time ... 'wired' coding standards ...

TagsNo tags attached.
Attached Files
mantisbt_adm_config_report.php.patch (597 bytes)   
Index: adm_config_report.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/adm_config_report.php,v
retrieving revision 1.5
diff -u -r1.5 adm_config_report.php
--- adm_config_report.php	12 Sep 2006 03:38:57 -0000	1.5
+++ adm_config_report.php	30 Oct 2006 11:08:39 -0000
@@ -41,7 +41,7 @@
 				return;
 			case CONFIG_TYPE_STRING:
 				$t_value = config_eval( $p_value );
-				echo "'$t_value'";
+				echo htmlspecialchars( "'$t_value'" );
 				return;
 			case CONFIG_TYPE_COMPLEX:
 				$t_value = unserialize( $p_value );

Activities