ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-Lib-Dev
php-Lib-Dev
[phplib-dev] cvs commit
by mavrekh other posts by this author
Aug 2 2001 6:10PM messages near this date
Re[2]: [phplib-dev] PHPLib CVS at SourceForge | [phplib-dev] the downloadable prepend.php3
From: mavrekh
Date: Thu Aug  2 20:10:31 2001
Modified files:
      php-lib-stable/php/of_textarea.inc

Log message:
added htmlspecialchars() to self_get_frozen (it's already in self_get)


Index: php-lib-stable/php/of_textarea.inc
diff -u php-lib-stable/php/of_textarea.inc:1.1 php-lib-stable/php/of_textarea.inc:1.2
--- php-lib-stable/php/of_textarea.inc:1.1	Mon Apr 17 18:40:15 2000
+++ php-lib-stable/php/of_textarea.inc	Thu Aug  2 20:10:01 2001
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 1998 by Jay Bloodworth
  *
- * $Id: of_textarea.inc,v 1.1 2000/04/17 16:40:15 kk Exp $
+ * $Id: of_textarea.inc,v 1.2 2001/08/02 18:10:01 mavrekh Exp $
  */
 
 class of_textarea extends of_element {
@@ -34,7 +34,9 @@
   function self_get_frozen($val,$which, &$count) {
     $str  = "";
     $str .= "<input type='hidden' name='$this-> name'";
-    $str .= " value='$this-> value'>\n";
+    $str .= " value=\"";
+    $str .= htmlspecialchars($this-> value);
+    $str .= "\"> \n";
     $str .= "<table border=1> <tr><td>\n";
     $str .=  nl2br($this-> value);
     $str .= "\n</td> </tr></table>\n";



-- 
Abbestellen mit Mail an:   phplib-dev-unsubscribe@[...].de
Kommandoliste mit Mail an: phplib-dev-help@lists.netuse.de

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved