Extravar.class 에서 homepage type value가 없을시 http:// 붙이지 않도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6043 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2009-04-07 07:50:44 +00:00
parent b284783566
commit fc873d41f6

View file

@ -94,7 +94,7 @@
if(!isset($value)) return;
switch($type) {
case 'homepage' :
if(!preg_match('/^([a-z]+):\/\//i',$value)) $value = 'http://'.$value;
if($value && !preg_match('/^([a-z]+):\/\//i',$value)) $value = 'http://'.$value;
return htmlspecialchars($value);
break;
case 'tel' :