diff --git a/core/includes/path.inc b/core/includes/path.inc
index 07aeee5..4633c3d 100644
--- a/core/includes/path.inc
+++ b/core/includes/path.inc
@@ -577,7 +577,7 @@ function drupal_valid_path($path, $dynamic_allowed = FALSE) {
   global $menu_admin;
   // We indicate that a menu administrator is running the menu access check.
   $menu_admin = TRUE;
-  if ($path == '<front>' || url_is_external($path)) {
+  if ($path == '<front>' || $path == '#' || url_is_external($path)) {
     $item = array('access' => TRUE);
   }
   elseif ($dynamic_allowed && preg_match('/\/\%/', $path)) {
