From b5b01a49760add094d5864796f9d3d8ce2649928 Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 10 Apr 2007 07:39:47 +0000 Subject: [PATCH] Missing change from last commit. git-svn-id: http://svn.automattic.com/wordpress/trunk@5227 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index e7207393af..209636dd75 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -1074,7 +1074,7 @@ function clean_url( $url, $protocols = null ) { $url = str_replace(';//', '://', $url); // Append http unless a relative link starting with / or a php file. if ( strpos($url, '://') === false && - substr( $url, 0, 1 ) != '/' && !preg_match('/^[a-z0-9]+?\.php/i', $url) ) + substr( $url, 0, 1 ) != '/' && !preg_match('/^[a-z0-9-]+?\.php/i', $url) ) $url = 'http://' . $url; $url = preg_replace('/&([^#])(?![a-z]{2,8};)/', '&$1', $url);