Re: CVS ltp/admin/projects

From: Martin Schulze (joey@infodrom.org)
Date: Sun May 12 2002 - 01:39:11 CEST


Erik Tews wrote:
> On Sat, May 11, 2002 at 09:12:10PM +0200, CVS User joey wrote:
> > Update of /var/cvs/ltev/ltp/admin/projects
> > In directory luonnotar:/tmp/cvs-serv18075
> >
> > Modified Files:
> > update.wml
> > Log Message:
> > Sorry, but that change was a little bit overzealous...
> >
> > --- /var/cvs/ltev/ltp/admin/projects/update.wml 2002/05/11 11:57:42 1.16
> > +++ /var/cvs/ltev/ltp/admin/projects/update.wml 2002/05/11 19:12:10 1.17
> > @@ -182,7 +182,7 @@
> > ."login,password,comment) "
> > ."VALUES ('%s',%s,'%s','%s',%d,%d,%d,%d,%d,'%s','%s')",
> > addslashes ($name),
> > - addslashes ($email),
> > + $email,
> > addslashes ($project),
> > addslashes ($nightplace),
> > $infomail, $insurance, $list,
> > @@ -198,7 +198,7 @@
> > $query = sprintf ("UPDATE person SET name='%s',email=%s,project='%s',"
> > ."nightplace='%s',infomail=%d,insurance=%d,list=%d,admin=%d,login=%d,comment='%s'",
> > addslashes ($name),
> > - addslashes ($email),
> > + $email,
> > addslashes ($project),
> > addslashes ($nightplace),
> > $infomail, $insurance, $list, $admin, $login,
>
> Why?

Schau mal etwas hoeher, da steht:

      if (empty($email)) {
        $email = 'NULL';
      } else {
        $email = "'".addslashes ($email)."'";
      }

Gruesse,

        Joey

-- 
It's time to close the windows.



This archive was generated by hypermail 2.1.3 : Sun May 12 2002 - 01:42:15 CEST