[Bps-public-commit] Prophet - A disconnected, replicated p2p database branch, master, updated. f4fbca509a92c6e7d41bd54e2361bb94b4d1e7c9
jesse
jesse at bestpractical.com
Fri Feb 6 17:51:38 EST 2009
The branch, master has been updated
via f4fbca509a92c6e7d41bd54e2361bb94b4d1e7c9 (commit)
from af321f97cc3ab897e76e702071a128a269c50de3 (commit)
Summary of changes:
lib/Prophet/Web/Field.pm | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit f4fbca509a92c6e7d41bd54e2361bb94b4d1e7c9
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Fri Feb 6 17:51:18 2009 -0500
Fix rendering of textarea fields when there's a default value
diff --git a/lib/Prophet/Web/Field.pm b/lib/Prophet/Web/Field.pm
index 2fd9385..d4ac0c7 100644
--- a/lib/Prophet/Web/Field.pm
+++ b/lib/Prophet/Web/Field.pm
@@ -60,9 +60,11 @@ sub render_input {
my $self = shift;
if ($self->type eq 'textarea') {
+ my $value = $self->value() || '';
+ Prophet::Util::escape_utf8(\$value);
return <<EOF;
-<textarea @{[$self->render_name]} @{[$self->render_id]} @{[$self->render_class]} >@{[$self->render_value]}</textarea>
+<textarea @{[$self->render_name]} @{[$self->render_id]} @{[$self->render_class]} >@{[$value]}</textarea>
EOF
} else {
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list