[prev in list] [next in list] [prev in thread] [next in thread]
List: squirrelmail-cvs
Subject: [SM-CVS] CVS: squirrelmail/plugins/fortune functions.php,1.3,1.4
From: Thijs Kinkhorst <kink () users ! sourceforge ! net>
Date: 2005-08-28 12:57:59
Message-ID: E1E9MjX-0002qt-6U () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]
Update of /cvsroot/squirrelmail/squirrelmail/plugins/fortune
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10906
Modified Files:
functions.php
Log Message:
Use shell exec so we can escape the fortune output.
Index: functions.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/fortune/functions.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -r1.3 -r1.4
--- functions.php 29 Dec 2004 19:08:21 -0000 1.3
+++ functions.php 28 Aug 2005 12:57:57 -0000 1.4
@@ -55,9 +55,9 @@
if (!$exist) {
printf(_("%s is not found."),$fortune_location);
} else {
- echo "<center><em>" . _("Today's Fortune") . "</em></center><pre>\n";
- htmlspecialchars(system($fortune_command));
- echo "</pre>\n";
+ echo "<center><em>" . _("Today's Fortune") . "</em></center><pre>\n" .
+ htmlspecialchars(shell_exec($fortune_command)) .
+ "</pre>\n";
}
echo '</td></tr></table></td></tr></table></td></tr></table></center>';
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
--
squirrelmail-cvs mailing list
List Address: squirrelmail-cvs@lists.sourceforge.net
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
http://squirrelmail.org/cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic