[Bps-public-commit] Prophet - A disconnected, replicated p2p database branch, master, updated. d1494e53005afb7d6be7ad296704f84019f6e534

jesse jesse at bestpractical.com
Thu Jan 22 21:45:22 EST 2009


The branch, master has been updated
       via  d1494e53005afb7d6be7ad296704f84019f6e534 (commit)
       via  cf5f273f426516b1e07342526343f37b709e1e20 (commit)
      from  5980de9ccec41d4830841d6b3c33a8c91a13e873 (commit)

Summary of changes:
 lib/Prophet/Web/Field.pm |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit cf5f273f426516b1e07342526343f37b709e1e20
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Thu Jan 22 21:44:58 2009 -0500

    Properly escape values in HTML tags

diff --git a/lib/Prophet/Web/Field.pm b/lib/Prophet/Web/Field.pm
index 075c00c..2fd9385 100644
--- a/lib/Prophet/Web/Field.pm
+++ b/lib/Prophet/Web/Field.pm
@@ -17,7 +17,8 @@ sub _render_attr {
     my $self = shift;
     my $attr = shift;
     my $value = $self->$attr() || return '';
-    return $attr . '="' . $self->$attr() . '"';
+    Prophet::Util::escape_utf8(\$value);
+    return $attr . '="' . $value . '"';
 }
 
 sub render_name {

commit d1494e53005afb7d6be7ad296704f84019f6e534
Merge: cf5f273... 5980de9...
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Thu Jan 22 21:45:19 2009 -0500

    Merge branch 'master' of code.bestpractical.com:/git/prophet


-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list