[rkward-cvs] SF.net SVN: rkward: [1886] trunk/rkward/rkward/rbackend/rthread.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Tue May 8 16:45:31 UTC 2007


Revision: 1886
          http://svn.sourceforge.net/rkward/?rev=1886&view=rev
Author:   tfry
Date:     2007-05-08 09:45:31 -0700 (Tue, 08 May 2007)

Log Message:
-----------
Make sure to escape error messages properly

Modified Paths:
--------------
    trunk/rkward/rkward/rbackend/rthread.cpp

Modified: trunk/rkward/rkward/rbackend/rthread.cpp
===================================================================
--- trunk/rkward/rkward/rbackend/rthread.cpp	2007-05-08 16:45:07 UTC (rev 1885)
+++ trunk/rkward/rkward/rbackend/rthread.cpp	2007-05-08 16:45:31 UTC (rev 1886)
@@ -218,6 +218,9 @@
 				RKWardRError error;
 				runCommandInternal (".rk.cat.output (\"<h2>Messages, warnings, or errors:</h2>\\n\")", &error, false);
 				RK_ASSERT (!error);
+
+				outp.replace ('\\', "\\\\");
+				outp.replace ('"', "\\\"");
 				runCommandInternal ("rk.print.literal (\"" + outp + "\")", &error, false);
 				RK_ASSERT (!error);
 			}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list