Changeset:
        40312b9f58a0
        
https://sourceforge.net/p/mrbs/hg-code/ci/40312b9f58a0edfb370138561df47afd32de37dc
Author:
        Campbell Morrison <[email protected]>
Date:
        Tue Mar 07 17:27:39 2017 +0000
Log message:

Stripped out HTML tags and entities from validation messages.  See SF Bugs #380.

diffstat:

 web/js/edit_entry.js.php |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r c14e2a2e995d -r 40312b9f58a0 web/js/edit_entry.js.php
--- a/web/js/edit_entry.js.php  Mon Mar 06 16:55:29 2017 +0000
+++ b/web/js/edit_entry.js.php  Tue Mar 07 17:27:39 2017 +0000
@@ -266,7 +266,7 @@
       label = $("label[for=" + key + "]");
       if (label.length > 0)
       {
-        validationMessages.vocab[key] = label.html();
+        validationMessages.vocab[key] = label.text();
         validationMessages.vocab[key] = '"' + 
validationMessages.vocab[key].replace(/:$/, '') + '" ';
         validationMessages.vocab[key] += '<?php echo 
escape_js(get_vocab("is_mandatory_field")) ?>';
     

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to