OSDN Git Service

BugTrack/232:move is_url() function into func.php.
authorpanda <panda>
Fri, 28 Feb 2003 06:18:19 +0000 (15:18 +0900)
committerpanda <panda>
Fri, 28 Feb 2003 06:18:19 +0000 (15:18 +0900)
func.php
plugin/ref.inc.php

index ac01e63..5999a03 100644 (file)
--- a/func.php
+++ b/func.php
@@ -2,7 +2,7 @@
 /////////////////////////////////////////////////
 // PukiWiki - Yet another WikiWikiWeb clone.
 //
-// $Id: func.php,v 1.21 2003/02/28 03:27:12 panda Exp $
+// $Id: func.php,v 1.22 2003/02/28 06:18:19 panda Exp $
 //
 
 // Ê¸»úÎó¤¬InterWikiName¤«¤É¤¦¤«
@@ -30,6 +30,11 @@ function is_pagename($str)
        
        return $is_pagename;
 }
+// Ê¸»úÎó¤¬URL¤«¤É¤¦¤«
+function is_url($str)
+{
+       return preg_match('/^(https?|ftp|news)(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)$/', $str);
+}
 // ¥Ú¡¼¥¸¤¬Â¸ºß¤¹¤ë¤«
 function is_page($page,$reload=FALSE)
 {
index f1be978..a21298d 100644 (file)
@@ -289,10 +289,6 @@ function plugin_ref_body($args,$page)
 }
 
 //-----------------------------------------------------------------------------
-// URL¤«¤É¤¦¤«
-function is_url($text) {
-       return preg_match('/^(https?|ftp|news)(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)$/', $text);
-}
 //¥ª¥×¥·¥ç¥ó¤ò²òÀϤ¹¤ë
 function ref_check_arg($val, $_key, &$params) {
        if ($val == '') {