Index: wp-includes/rewrite.php
===================================================================
--- wp-includes/rewrite.php	(revision 5282)
+++ wp-includes/rewrite.php	(working copy)
@@ -63,6 +63,8 @@
 // determine the post ID it represents.
 function url_to_postid($url) {
 	global $wp_rewrite;
+	
+	$url = apply_filters('url_to_postid', $url);
 
 	// First, check to see if there is a 'p=N' or 'page_id=N' to match against
 	preg_match('#[?&](p|page_id)=(\d+)#', $url, $values);

