Blob Blame History Raw
--- xen-4.2.2/tools/pygrub/src/GrubConf.py.orig	2013-04-23 17:42:55.000000000 +0100
+++ xen-4.2.2/tools/pygrub/src/GrubConf.py	2013-05-14 21:59:55.660558780 +0100
@@ -390,7 +390,7 @@
                 continue
 
             # new image
-            title_match = re.match('^menuentry ["\'](.*)["\'] (.*){', l)
+            title_match = re.match('^menuentry ["\']([^"\']*)["\'] (.*){', l)
             if title_match:
                 if img is not None:
                     raise RuntimeError, "syntax error: cannot nest menuentry (%d %s)" % (len(img),img)