Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69141 - website/public_html/beta/common/code
From: dnljms_at_[hidden]
Date: 2011-02-22 04:19:31


Author: danieljames
Date: 2011-02-22 04:19:29 EST (Tue, 22 Feb 2011)
New Revision: 69141
URL: http://svn.boost.org/trac/boost/changeset/69141

Log:
Fix directories and using htmlentities.
Text files modified:
   website/public_html/beta/common/code/boost_archive.php | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: website/public_html/beta/common/code/boost_archive.php
==============================================================================
--- website/public_html/beta/common/code/boost_archive.php (original)
+++ website/public_html/beta/common/code/boost_archive.php 2011-02-22 04:19:29 EST (Tue, 22 Feb 2011)
@@ -270,10 +270,10 @@
 
     while (($file = readdir($handle)) !== false)
     {
- if (substr($file, 0, 1) != '.') {
- $file_html = htmlentities($file);
- $content .= "<li><a href='$file'>$file</a></li>\n";
- }
+ if (substr($file, 0, 1) == '.') continue;
+ if (is_dir("$dir$file")) $file .= '/';
+ $file = htmlentities($file);
+ $content .= "<li><a href='$file'>$file</a></li>\n";
     }
 
     $content .= "</ul>\n";


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk