From: <on...@us...> - 2002-09-27 12:24:59
|
Update of /cvsroot/xoops/xoops-current/html/include In directory usw-pr-cvs1:/tmp/cvs-serv12051 Modified Files: functions.php Log Message: no message Index: functions.php =================================================================== RCS file: /cvsroot/xoops/xoops-current/html/include/functions.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** functions.php 26 Sep 2002 02:47:17 -0000 1.18 --- functions.php 27 Sep 2002 12:24:56 -0000 1.19 *************** *** 169,176 **** function formatURL($url){ ! if ( ($url != "") && !eregi('(^http[s]*:[/]+)(.*)', $url) ) { ! $url = "http://" . $url; ! } else { ! $url = ""; } return $url; --- 169,177 ---- function formatURL($url){ ! $url = trim($url); ! if ($url != '') { ! if (!preg_match("/^http[s]*:\/\//i", $url)) { ! $url = 'http://'.$url; ! } } return $url; |