From: <gi...@us...> - 2008-07-25 16:35:49
|
Revision: 5420 http://mantisbt.svn.sourceforge.net/mantisbt/?rev=5420&view=rev Author: giallu Date: 2008-07-25 16:35:47 +0000 (Fri, 25 Jul 2008) Log Message: ----------- Loosen regexp matching as suggested in bug #9426 Modified Paths: -------------- branches/BRANCH_1_1_0/mantisbt/adm_config_set.php Modified: branches/BRANCH_1_1_0/mantisbt/adm_config_set.php =================================================================== --- branches/BRANCH_1_1_0/mantisbt/adm_config_set.php 2008-07-21 02:56:07 UTC (rev 5419) +++ branches/BRANCH_1_1_0/mantisbt/adm_config_set.php 2008-07-25 16:35:47 UTC (rev 5420) @@ -81,7 +81,7 @@ # 2. simple arrays with the form: array( a, b, c, d ) # 3. associative arrays with the form: array( a=>1, b=>2, c=>3, d=>4 ) $t_full_string = trim( $f_value ); - if ( preg_match('/array\((.*)\)/', $t_full_string, $t_match ) === 1 ) { + if ( preg_match('/array[\s]*\((.*)\)/', $t_full_string, $t_match ) === 1 ) { // we have an array here $t_values = split( ',', trim( $t_match[1] ) ); foreach ( $t_values as $key => $value ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |