From: x2000habouzit Date: Sat, 16 Oct 2004 22:34:09 +0000 (+0000) Subject: more bugfixes X-Git-Tag: xorg/old~1247 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=f23675ed3a131b9a86e1735bcaeb0e002166c1bf;p=platal.git more bugfixes --- diff --git a/htdocs/admin/newsletter_edit.php b/htdocs/admin/newsletter_edit.php index 8e39166..0090ad12 100644 --- a/htdocs/admin/newsletter_edit.php +++ b/htdocs/admin/newsletter_edit.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: newsletter_edit.php,v 1.3 2004-10-16 22:06:32 x2000habouzit Exp $ + $Id: newsletter_edit.php,v 1.4 2004-10-16 22:34:09 x2000habouzit Exp $ ***************************************************************************/ require("auto.prepend.inc.php"); diff --git a/include/newsletter.inc.php b/include/newsletter.inc.php index 559d485..8c8822b 100644 --- a/include/newsletter.inc.php +++ b/include/newsletter.inc.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: newsletter.inc.php,v 1.10 2004-10-16 22:06:33 x2000habouzit Exp $ + $Id: newsletter.inc.php,v 1.11 2004-10-16 22:34:09 x2000habouzit Exp $ ***************************************************************************/ @@ -99,7 +99,7 @@ class NewsLetter { ".($a->_pos ? $a->_pos : "MAX(pos)+1").", '{$a->_title}','{$a->_body}','{$a->_append}' FROM newsletter_art AS a - WHERE a.id={$this->_id} AND cid='{$a->_cid}'"); + WHERE a.id={$this->_id}"); $this->_arts['a'.$a->_aid] = $a; } } @@ -117,9 +117,6 @@ class NewsLetter { $res .= ' '.$this->title()."\n"; $res .= "====================================================================\n\n"; - $res .= "INTRO\n\n"; - - $res .= "--------------------------------------------------------------------\n"; $i = 1; foreach($this->_arts as $cid=>$arts) { $res .= "\n$i *{$this->_cats[$cid]}*\n"; @@ -128,7 +125,7 @@ class NewsLetter { } $i ++; } - $res .= "\n"; + $res .= "\n\n"; foreach($this->_arts as $cid=>$arts) { $res .= "--------------------------------------------------------------------\n"; @@ -151,7 +148,7 @@ class NewsLetter { foreach($this->_arts as $cid=>$arts) { $res .= "$i. {$this->_cats[$cid]}
"; foreach($arts as $art) { - $res .= '- '.$art->title()."
\n"; + $res .= '- '.htmlentities($art->title())."
\n"; } $res .= '
'; $i ++; @@ -198,7 +195,7 @@ class NLArticle { function toHtml() { $title = '
' - .$this->title().'
'; + .htmlentities($this->title()).''; $body = enriched_to_text($this->_body,true); $app = enriched_to_text($this->_append,true); diff --git a/templates/admin/newsletter_edit.tpl b/templates/admin/newsletter_edit.tpl index 1125dc8..3567e1f 100644 --- a/templates/admin/newsletter_edit.tpl +++ b/templates/admin/newsletter_edit.tpl @@ -17,7 +17,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: newsletter_edit.tpl,v 1.3 2004-10-16 22:06:33 x2000habouzit Exp $ + $Id: newsletter_edit.tpl,v 1.4 2004-10-16 22:34:09 x2000habouzit Exp $ ***************************************************************************} {dynamic} @@ -128,7 +128,7 @@ Sujet - +