summaryrefslogtreecommitdiff
path: root/www/policy/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/policy/index.php')
-rw-r--r--www/policy/index.php16
1 files changed, 5 insertions, 11 deletions
diff --git a/www/policy/index.php b/www/policy/index.php
index 7101c1f..1715bf9 100644
--- a/www/policy/index.php
+++ b/www/policy/index.php
@@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-*/
+*/
loadem("index");
showheader(_("CAcert - Policies"));
?>
@@ -23,17 +23,11 @@ showheader(_("CAcert - Policies"));
<ul>
<?php
-foreach (glob("*.html") as $filename)
+foreach (glob("*.html") as $filename)
{
- echo "<li><a href='$filename'>$filename</a></li>\n";
-}
-
-foreach (glob("*.php") as $filename)
-{
- if($filename != "index.php" && $filename != "NRPDisclaimerAndLicence.php")
- {
- echo "<li><a href='$filename'>$filename</a></li>\n";
- }
+ if($filename != "NRPDisclaimerAndLicence.html"){
+ echo "<li><a href='".htmlspecialchars($filename)."'>".htmlspecialchars($filename)."</a></li>\n";
+ }
}