Index: url.php
===================================================================
--- url.php	(revision 1202)
+++ url.php	(working copy)
@@ -306,4 +306,58 @@
 		// Tests requiring creating more posts can't be run since the query
 		// cache in get_adjacent_post() requires a fresh page load to invalidate.
 	}
+	
+	/**
+	 * Test that *_url functions handle ".." and "..." requests properly.
+	 * @ticket 19032
+	 */
+	public function test_get_home_url() {
+		$test_cases = array(
+
+			/** Functions that DO NOT return a trailing slash **/
+
+			// get_admin_url
+			get_admin_url(null, '../')              => get_admin_url() . '../',
+			get_admin_url(null, 'something...here') => get_admin_url() . 'something...here',
+
+			// includes_url
+			includes_url('../')                     => includes_url() . '../',
+			includes_url('something...here')        => includes_url() . 'something...here',
+
+			// network_admin_url
+			network_admin_url('../')                => network_admin_url() . '../',
+			network_admin_url('something...here')   => network_admin_url() . 'something...here',
+
+			// user_admin_url
+			user_admin_url('../')                   => user_admin_url() . '../',
+			user_admin_url('something...here')      => user_admin_url() . 'something...here',
+
+			/** Functions that return a trailing slash **/ 
+
+			// network_site_url
+			network_site_url('../')                 => network_site_url() . '/../',
+			network_site_url('something...here')    => network_site_url() . '/something...here',
+
+			// get_home_url
+			get_home_url(null, '../')               => get_home_url() . '/../',
+			get_home_url(null, 'something...here')  => get_home_url() . '/something...here',
+
+			// content_url
+			content_url('../')                      => content_url() . '/../',
+			content_url('something...here')         => content_url() . '/something...here',
+
+			// plugins_url
+			plugins_url('../')                      => plugins_url() . '/../',
+			plugins_url('something...here')         => plugins_url() . '/something...here',
+
+			// network_home_url
+			network_home_url('../')                 => network_home_url() . '/../',
+			network_home_url('something...here')    => network_home_url() . '/something...here',
+			
+		);
+
+		foreach ( $test_cases as $actual => $expected ) {
+			$this->assertEquals( $expected, $actual );
+		}
+	}
 }
