Author: sanda
Date: Tue Mar 8 16:01:12 2011
New Revision: 37882
URL: http://www.lyx.org/trac/changeset/37882
Log:
Backport fix for #7338
Modified:
lyx-devel/branches/BRANCH_1_6_X/src/LyXVC.cpp
lyx-devel/branches/BRANCH_1_6_X/status.16x
Modified: lyx-devel/branches/BRANCH_1_6_X/src/LyXVC.cpp
==============================================================================
--- lyx-devel/branches/BRANCH_1_6_X/src/LyXVC.cpp Tue Mar 8 15:41:01
2011 (r37881)
+++ lyx-devel/branches/BRANCH_1_6_X/src/LyXVC.cpp Tue Mar 8 16:01:12
2011 (r37882)
@@ -152,6 +152,9 @@
if (ok) {
if (response.empty())
response = _("(no log message)");
+ //shell collisions
+ response = subst(response, from_utf8("\""), from_utf8("\\\""));
+
log = vcs->checkIn(to_utf8(response));
} else {
LYXERR(Debug::LYXVC, "LyXVC: user cancelled");
Modified: lyx-devel/branches/BRANCH_1_6_X/status.16x
==============================================================================
--- lyx-devel/branches/BRANCH_1_6_X/status.16x Tue Mar 8 15:41:01 2011
(r37881)
+++ lyx-devel/branches/BRANCH_1_6_X/status.16x Tue Mar 8 16:01:12 2011
(r37882)
@@ -71,6 +71,8 @@
- Show mnemonics in context menus that are requested by the keyboard
key (only Windows; bug 5414).
+- Fix broken commits in VCS when message contains quotes (bug 7338).
+
* DOCUMENTATION AND LOCALIZATION