Subject: 24.0.50; Missing regexp escape in log-edit-changelog-entries

From: Jan Moringen <[email-masked]>
Date: Sun, 28 Nov 2010 15:09:24 +0100

Hi,

the function `log-edit-changelog-entries' does a regexp search in
ChangeLog files using a regular expression that is constructed based on
a filename. The filename is not regexp quoted. The attach trivial patch
should fix the issue.

Kind regards,
Jan
=== modified file 'lisp/vc/log-edit.el'
--- lisp/vc/log-edit.el	2010-11-09 20:07:10 +0000
+++ lisp/vc/log-edit.el	2010-11-27 01:45:51 +0000
@@ -775,7 +775,7 @@
 		(setq pattern (file-name-nondirectory file)))
 
             (setq pattern (concat "\\(^\\|[^[:alnum:]]\\)"
-                                  pattern
+                                  (regexp-quote pattern)
                                   "\\($\\|[^[:alnum:]]\\)"))
 
 	    (let (texts