Index: wp-includes/query.php
===================================================================
--- wp-includes/query.php	(revision 15175)
+++ wp-includes/query.php	(working copy)
@@ -1111,6 +1111,17 @@
 	var $is_posts_page = false;
 
 	/**
+	 * Set if query must be strictly what it is asked to do.
+	 *
+	 * Set if query is strict.
+	 *
+	 * @since 3.x.x
+	 * @access public
+	 * @var bool
+	 */
+	var $is_strict = false;
+
+	/**
 	 * Resets query flags to false.
 	 *
 	 * The query flags are what page info WordPress was able to figure out.
@@ -1143,6 +1154,7 @@
 		$this->is_singular = false;
 		$this->is_robots = false;
 		$this->is_posts_page = false;
+		$this->is_strict = false;
 	}
 
 	/**
@@ -1218,6 +1230,7 @@
 			, 'preview'
 			, 's'
 			, 'sentence'
+			, 'strict'
 		);
 
 		foreach ( $keys as $key ) {
@@ -1282,6 +1295,9 @@
 
 		$qv['attachment_id'] = absint($qv['attachment_id']);
 
+		if ( isset($qv['strict']) && $qv['strict'] )
+			$this->is_strict = true;
+
 		if ( ('' != $qv['attachment']) || !empty($qv['attachment_id']) ) {
 			$this->is_single = true;
 			$this->is_attachment = true;
@@ -1872,7 +1888,7 @@
 
 		if ( empty($q['cat']) || ($q['cat'] == '0') ||
 				// Bypass cat checks if fetching specific posts
-				$this->is_singular ) {
+				($this->is_singular && !$this->is_strict) ) {
 			$whichcat = '';
 		} else {
 			$q['cat'] = ''.urldecode($q['cat']).'';
@@ -1909,7 +1925,7 @@
 		}
 
 		// Category stuff for nice URLs
-		if ( '' != $q['category_name'] && !$this->is_singular ) {
+		if ( '' != $q['category_name'] && (!$this->is_singular || $this->is_strict) ) {
 			$q['category_name'] = implode('/', array_map('sanitize_title', explode('/', $q['category_name'])));
 			$reqcat = get_category_by_path($q['category_name']);
 			$q['category_name'] = str_replace('%2F', '/', urlencode(urldecode($q['category_name'])));
