From 7559d9a766c22c9801ffb8bf6afdd778280cd842 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 5 Mar 2009 20:17:27 +0000 Subject: [PATCH] Escape dot in regex. Props pne, sivel. fixes #9088 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@10717 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/link-manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php index c26abe3e7e..83e6f5c82f 100644 --- a/wp-admin/link-manager.php +++ b/wp-admin/link-manager.php @@ -168,7 +168,7 @@ if ( $links ) { $link->link_name = attribute_escape($link->link_name); $link->link_category = wp_get_link_cats($link->link_id); $short_url = str_replace('http://', '', $link->link_url); - $short_url = preg_replace('/^www./i', '', $short_url); + $short_url = preg_replace('/^www\./i', '', $short_url); if ('/' == substr($short_url, -1)) $short_url = substr($short_url, 0, -1); if (strlen($short_url) > 35)