Revision: 1793
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1793&view=rev
Author:   cimorrison
Date:     2011-02-22 10:46:30 +0000 (Tue, 22 Feb 2011)

Log Message:
-----------
Added a '/' to the list of characters escaped in JavaScript strings to prevent 
HTML validation errors being generated on the edit_entry page if there's a '/' 
in the room or area name.

Modified Paths:
--------------
    mrbs/trunk/web/functions.inc

Modified: mrbs/trunk/web/functions.inc
===================================================================
--- mrbs/trunk/web/functions.inc        2011-02-22 10:26:03 UTC (rev 1792)
+++ mrbs/trunk/web/functions.inc        2011-02-22 10:46:30 UTC (rev 1793)
@@ -561,7 +561,7 @@
 // http://www.php.net/manual/function.addcslashes.php
 function escape_js($str)
 {
-  return addcslashes($str, "\\\'\"&\n\r<>");
+  return addcslashes($str, "\\\'\"&\n\r<>/");
 }
 
 


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

------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to