Changeset 5915
- Timestamp:
- 04/11/12 12:25:36 (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/csv_import.php
r5912 r5915 373 373 foreach($trans[$csv_idx] as $pattern => $replace) 374 374 { 375 if (preg_match( (string) '/'.$pattern.'/',$val))375 if (preg_match("/$pattern/",$val)) 376 376 { 377 377 // echo "<p>csv_idx='$csv_idx',info='$info',trans_csv=".print_r($trans_csv).",ereg_replace('$pattern','$replace','$val') = "; … … 380 380 381 381 $reg = $CPreReg.'([a-zA-Z_0-9]+)'.$CPosReg; 382 while (preg_match( '/'.$reg.'/',$val,$vars))382 while (preg_match("/$reg/",$val,$vars)) 383 383 { // expand all CSV fields 384 384 $val = str_replace($CPre.$vars[1].$CPos,$val[0] == '@' ? "'".addslashes($fields[array_search($vars[1],$csv_fields)])."'" : $fields[array_search($vars[1],$csv_fields)],$val); -
trunk/contactcenter/inc/class.abo_catalog.inc.php
r5912 r5915 356 356 for($k = 0; $k < $n_joins; $k++) 357 357 { 358 if (preg_match( '/'.$query_join_reg.'/',$query_fields_joins[$k]))358 if (preg_match("/$query_join_reg/",$query_fields_joins[$k])) 359 359 { 360 360 $unique = false; … … 430 430 for($k = 0; $k < $n_joins; $k++) 431 431 { 432 if (preg_match( '/'.$query_join_reg.'/',$query_restric_joins[$k]))432 if (preg_match("/$query_join_reg/",$query_restric_joins[$k])) 433 433 { 434 434 $unique = false; -
trunk/phpgwapi/inc/class.network.inc.php
r5912 r5915 164 164 } 165 165 $response = $this->read_port(); 166 if(!preg_match( '/'.strtoupper($expected_response).'/',strtoupper($response)))166 if(!preg_match(strtoupper("/$expected_response/"),strtoupper($response))) 167 167 { 168 168 if(substr($expected_response,1,1) == '+') -
trunk/phpgwapi/inc/class.xml.inc.php
r5912 r5915 2749 2749 2750 2750 // Check whether the first string starts with the second one. 2751 if ( preg_match( '/'.$second.'/', $first) )2751 if ( preg_match("/$second/", $first) ) 2752 2752 { 2753 2753 // Return true.
Note: See TracChangeset
for help on using the changeset viewer.