Changeset 3713
- Timestamp:
- 04/18/06 04:58:38 (3 years ago)
- Files:
-
- trunk/wp-includes/comment-functions.php (modified) (1 diff)
- trunk/wp-includes/functions-formatting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/comment-functions.php
r3662 r3713 229 229 do_action('wp_set_comment_status', $comment_id, 'delete'); 230 230 return true; 231 }232 233 function clean_url( $url ) {234 if ('' == $url) return $url;235 $url = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $url);236 $url = str_replace(';//', '://', $url);237 $url = (!strstr($url, '://')) ? 'http://'.$url : $url;238 $url = preg_replace('/&([^#])(?![a-z]{2,8};)/', '&$1', $url);239 return $url;240 231 } 241 232 trunk/wp-includes/functions-formatting.php
r3710 r3713 1024 1024 } 1025 1025 1026 function clean_url( $url ) { 1027 if ('' == $url) return $url; 1028 $url = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $url); 1029 $url = str_replace(';//', '://', $url); 1030 $url = (!strstr($url, '://')) ? 'http://'.$url : $url; 1031 $url = preg_replace('/&([^#])(?![a-z]{2,8};)/', '&$1', $url); 1032 return $url; 1033 } 1034 1026 1035 ?>
