From: Yves G. <yg...@mi...> - 2005-01-19 21:52:00
|
On Wednesday 19 January 2005 10:57, Witold Czarnecki wrote: > Hello, Hi, > my suggestion: > > * to add htmlspecialchars function in table_browse.php: > > the line #34 after change will be: > > print '<td>'.(substr(htmlspecialchars($row[$i]),0,50))."...</td>\n"; could you please try out the cvs version as it already contains a change=20 that should do what you have been thinking of...? Concerned part of table_browse.php (lines 43-49): for ($i=3D0; $i<$nr_fields; $i++) { if (strlen($row[$i]) > 50) { print '<td>'.substr(htmlentities($row[$i],ENT_QUOTES, $encoding),0,50)."...</td>\n"; } else { print "<td>".htmlentities($row[$i],ENT_QUOTES,$encoding)."</td>\n"; } } thanks and best regards, Yves > I store some HTML code in the database so it's must for me. > > Best regards, > Witold Czarnecki > > -- > # PROGRAMMERS.PL > # tailor-made software solutions > # http://www.programmers.pl > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Phpsqliteadmin-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpsqliteadmin-devel =2D-=20 Linux 2.6.10 #1 Sat Dec 25 11:15:48 CET 2004 i686 22:44:09 up 47 min, 1 user, load average: 0.02, 0.04, 0.09 |