Ticket #4051: 4051.patch
| File 4051.patch, 590 bytes (added by , 17 years ago) |
|---|
-
wp-includes/formatting.php
2004 2004 * link starting with / or a php file). 2005 2005 */ 2006 2006 if ( strpos($url, ':') === false && 2007 substr( $url, 0, 1 ) != '/' && !preg_match('/^[a-z0-9-]+?\.php/i', $url) )2007 substr( $url, 0, 1 ) != '/' && substr( $url, 0, 1 ) != '#' && !preg_match('/^[a-z0-9-]+?\.php/i', $url) ) 2008 2008 $url = 'http://' . $url; 2009 2009 2010 2010 // Replace ampersands and single quotes only when displaying.