Changeset:
        0f83dfa471b5
        
https://sourceforge.net/p/mrbs/hg-code/ci/0f83dfa471b5c641fe3ec864d5a40142043cf51e
Author:
        Campbell Morrison <cimorri...@hg.code.sf.net>
Date:
        Wed Oct 12 16:14:11 2016 +0100
Log message:

Turned email addresses in the users list into links.

diffstat:

 web/edit_users.php |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r 3e4c500f792c -r 0f83dfa471b5 web/edit_users.php
--- a/web/edit_users.php        Wed Oct 12 09:11:27 2016 +0100
+++ b/web/edit_users.php        Wed Oct 12 16:14:11 2016 +0100
@@ -171,7 +171,10 @@
           break;
         case 'email':
           // we don't want to truncate the email address
-          $values[] = "<div class=\"string\">" . htmlspecialchars($col_value) 
. "</div>";
+          $escaped_email = htmlspecialchars($col_value);
+          $values[] = "<div class=\"string\">\n" .
+                      "<a href=\"mailto:$escaped_email\";>$escaped_email</a>\n" 
.
+                      "</div>\n";
           break;
         default:
           // Where there's an associative array of options, display

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mrbs-commits mailing list
Mrbs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to