From 61dbf66389433b90563bf729f36d258acd3c1e48 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Tue, 30 Nov 2004 18:39:18 +0000 Subject: [PATCH] closes an at least 2 years TODO : lists archives are online #86 --- ChangeLog | 1 + htdocs/listes/archives.php | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b8cc140..8432290 100644 --- a/ChangeLog +++ b/ChangeLog @@ -42,6 +42,7 @@ Bug/Wish : - #83,208,222 : New fiche. -MC * Lists : + - #86 : yet another old old wish : lists archives are online ! -MC - #184 : Owners can now delete their lists. -MC - #231 : Add a link to the user's fiche on moderation page. -MC diff --git a/htdocs/listes/archives.php b/htdocs/listes/archives.php index 66298b5..6bb3832 100644 --- a/htdocs/listes/archives.php +++ b/htdocs/listes/archives.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: archives.php,v 1.3 2004-11-30 11:30:57 x2000habouzit Exp $ + $Id: archives.php,v 1.4 2004-11-30 18:39:19 x2000habouzit Exp $ ***************************************************************************/ if(empty($_REQUEST['liste'])) header('Location: index.php'); @@ -36,7 +36,11 @@ if (list($det) = $client->get_members($liste)) { } elseif (isset($_GET['file'])) { $file = $_GET['file']; $rep = $_GET['rep']; - $page->assign('url', $globals->lists->spool."/polytechnique.org-$liste/$rep/$file"); + if(strstr('/', $file)!==false || !preg_match(',^\d+/\d+$,', $_GET['rep'])) { + $page->assign('no_list',true); + } else { + $page->assign('url', $globals->lists->spool."/polytechnique.org-$liste/$rep/$file"); + } } else { $archs = Array(); foreach (glob($globals->lists->spool."/polytechnique.org-$liste/*/*") as $rep) { -- 2.1.4