Changeset 5921 for trunk/phpgwapi
- Timestamp:
- 04/11/12 17:21:30 (12 years ago)
- Location:
- trunk/phpgwapi
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/adodb/drivers/adodb-sybase.inc.php
r34 r5921 377 377 378 378 //Dec 30 2000 12:00AM 379 if (! ereg( "([A-Za-z]{3})[-/\. ]+([0-9]{1,2})[-/\. ]+([0-9]{4})"379 if (!preg_match('/([A-Za-z]{3})[-\/\. ]+([0-9]{1,2})[-\/\. ]+([0-9]{4})/' 380 380 ,$v, $rr)) return parent::UnixDate($v); 381 381 … … 394 394 //11.02.2001 Toni Tunkkari toni.tunkkari@finebyte.com 395 395 //Changed [0-9] to [0-9 ] in day conversion 396 if (! ereg( "([A-Za-z]{3})[-/\. ]([0-9 ]{1,2})[-/\. ]([0-9]{4}) +([0-9]{1,2}):([0-9]{1,2}) *([apAP]{0,1})"396 if (!preg_match('/([A-Za-z]{3})[-\/\. ]([0-9 ]{1,2})[-\/\. ]([0-9]{4}) +([0-9]{1,2}):([0-9]{1,2}) *([apAP]{0,1})/' 397 397 ,$v, $rr)) return parent::UnixTimeStamp($v); 398 398 if ($rr[3] <= TIMESTAMP_FIRST_YEAR) return 0; -
trunk/phpgwapi/inc/class.soapmsg.inc.php
r5912 r5921 144 144 /* 145 145 // if response is a proper http response, and is not a 200 146 if(preg_match('/^HTTP /',$clean_data) && !ereg("200$", $clean_data))146 if(preg_match('/^HTTP\/',$clean_data) && !preg_match('\/200$\/', $clean_data)) 147 147 { 148 148 // get error data -
trunk/phpgwapi/inc/class.vfs_dav.inc.php
r5912 r5921 519 519 { 520 520 $base_sep = $sep; 521 if ( ereg ("^$this->basedir" . $sep, $string))521 if (preg_match("/^$this->basedir/" . $sep, $string)) 522 522 { 523 523 $base = $this->basedir . $sep; … … 585 585 while (list ($num, $link_info) = each ($this->linked_dirs)) 586 586 { 587 if ( ereg ("^$link_info[directory]/$link_info[name](/|$)", $rarray['fake_full_path']))587 if (preg_match("/^$link_info[directory]\/$link_info[name](\/|$)/", $rarray['fake_full_path'])) 588 588 { 589 589 $rarray['real_full_path'] = ereg_replace ("^$this->basedir", '', $rarray['real_full_path']); … … 764 764 765 765 /* Let's not return // */ 766 while ( ereg ($sep . $sep, $basedir))766 while (preg_match("/$sep"."$sep/", $basedir)) 767 767 { 768 768 $basedir = ereg_replace ($sep . $sep, $sep, $basedir); … … 1776 1776 'relatives' => array ($f->mask) 1777 1777 ) == 'Directory')) 1778 && ereg ("^$f->fake_full_path", $t->fake_full_path)1778 && preg_match("/^$f->fake_full_path/", $t->fake_full_path) 1779 1779 ) 1780 1780 { … … 2048 2048 2049 2049 /* We don't allow /'s in dir names, of course */ 2050 if ( ereg ('/', $p->fake_name))2050 if (preg_match('/\//', $p->fake_name)) 2051 2051 { 2052 2052 return False; … … 2279 2279 ); 2280 2280 } 2281 elseif ( ereg("+^$this->fakebase\/(.*)$+U", $p->fake_full_path, $matches))2281 elseif (preg_match("/+^$this->fakebase\/(.*)$+U/", $p->fake_full_path, $matches)) 2282 2282 { 2283 2283 $set_attributes_array = Array( … … 2502 2502 */ 2503 2503 /* 2504 if (@! ereg ('^' . $file_array['directory'], $p->fake_full_path))2504 if (@!preg_match("/^$file_array['directory']/", $p->fake_full_path)) 2505 2505 { 2506 2506 continue; -
trunk/phpgwapi/inc/class.vfs_shared.inc.php
r5912 r5921 759 759 760 760 /* Let's not return // */ 761 while ( ereg ($sep . $sep, $basedir))761 while (preg_match("/$sep"."$sep/", $basedir)) 762 762 { 763 763 $basedir = ereg_replace ($sep . $sep, $sep, $basedir); … … 1028 1028 while (list ($num, $link_info) = each ($this->linked_dirs)) 1029 1029 { 1030 if ( ereg ("^$link_info[directory]/$link_info[name](/|$)", $rarray['fake_full_path']))1030 if (preg_match("/^$link_info[directory]\/$link_info[name](\/|$)/", $rarray['fake_full_path'])) 1031 1031 { 1032 1032 $rarray['real_full_path'] = ereg_replace ("^$this->basedir", '', $rarray['real_full_path']); -
trunk/phpgwapi/inc/class.vfs_sql.inc.php
r5164 r5921 1522 1522 'relatives' => array ($f->mask) 1523 1523 ) == 'Directory')) 1524 && ereg ("^$f->fake_full_path", $t->fake_full_path)1524 && preg_match("/^$f->fake_full_path/", $t->fake_full_path) 1525 1525 ) 1526 1526 { … … 1889 1889 1890 1890 /* We don't allow /'s in dir names, of course */ 1891 if ( ereg ("/", $p->fake_name))1891 if (preg_match('/\//', $p->fake_name)) 1892 1892 { 1893 1893 return False; … … 2491 2491 */ 2492 2492 /* 2493 if (@! ereg ('^' . $file_array['directory'], $p->fake_full_path))2493 if (@!preg_match("/^$file_array['directory']/", $p->fake_full_path)) 2494 2494 { 2495 2495 continue; -
trunk/phpgwapi/inc/fpdf/tutorial/tuto6.php
r2 r5921 48 48 $attr=array(); 49 49 foreach($a2 as $v) 50 if( ereg('^([^=]*)=["\']?([^"\']*)["\']?$',$v,$a3))50 if(preg_match('/^([^=]*)=["\']?([^"\']*)["\']?$/',$v,$a3)) 51 51 $attr[strtoupper($a3[1])]=$a3[2]; 52 52 $this->OpenTag($tag,$attr); -
trunk/phpgwapi/templates/news/login_news.php
r5159 r5921 343 343 foreach($_GET as $name => $value) 344 344 { 345 if( ereg('phpgw_',$name))345 if(preg_match('/phpgw_/',$name)) 346 346 { 347 347 $extra_vars .= '&' . $name . '=' . urlencode($value);
Note: See TracChangeset
for help on using the changeset viewer.