[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS Update: gleipnir
- To: cvs@lists.cleannorth.org
- Subject: CVS Update: gleipnir
- From: Dan Brosemer <odin@cleannorth.org>
- Date: Sun, 17 Aug 2008 13:16:34 -0400 (EDT)
- List-help: <mailto:cvs-request@lists.cleannorth.org?subject=help>
- List-post: <mailto:cvs@lists.cleannorth.org>
- List-subscribe: <mailto:cvs-request@lists.cleannorth.org?subject=subscribe>
- List-unsubscribe: <mailto:cvs-request@lists.cleannorth.org?subject=unsubscribe>
- Resent-date: Sun, 17 Aug 2008 13:16:37 -0401 (EDT)
- Resent-from: cvs@lists.cleannorth.org
- Resent-message-id: <vCrtGB.A.YAB.L0FqIB@skroob.cleannorth.org>
- Resent-sender: cvs-request@lists.cleannorth.org
Log Message:
-----------
Correctly armor $ingroups here too.
Modified Files:
--------------
gleipnir/public_html/gallery:
picture.pl
upload.pl
Revision Data
-------------
Index: picture.pl
===================================================================
RCS file: /cvs/gleipnir/public_html/gallery/picture.pl,v
retrieving revision 1.4
retrieving revision 1.5
diff -Lpublic_html/gallery/picture.pl -Lpublic_html/gallery/picture.pl -u -r1.4 -r1.5
--- public_html/gallery/picture.pl
+++ public_html/gallery/picture.pl
@@ -66,7 +66,7 @@
my $SQL = <<EOT;
select gp.pictureid, gp.gallery, gp.image_path, gp.title, gp.caption, gp.exif, gp.uploader, gp.uploaded, g.identifier, g.description
-from gallery_picture gp left join gallery g on g.galleryid = gp.gallery where gp.pictureid = ? and $ingroups
+from gallery_picture gp left join gallery g on g.galleryid = gp.gallery where gp.pictureid = ? and ($ingroups)
EOT
my $cursor = $dbh->prepare($SQL);
Index: upload.pl
===================================================================
RCS file: /cvs/gleipnir/public_html/gallery/upload.pl,v
retrieving revision 1.9
retrieving revision 1.10
diff -Lpublic_html/gallery/upload.pl -Lpublic_html/gallery/upload.pl -u -r1.9 -r1.10
--- public_html/gallery/upload.pl
+++ public_html/gallery/upload.pl
@@ -53,7 +53,7 @@
$ingroups = " gid is null " . $ingroups;
my $SQL =<<EOT;
-select identifier, galleryid from gallery where $ingroups
+select identifier, galleryid from gallery where ($ingroups)
EOT
my $cursor = $dbh->prepare($SQL);
- Prev by Date: CVS Update: gleipnir
- Next by Date: CVS Update: gleipnir
- Previous by thread: CVS Update: gleipnir
- Next by thread: CVS Update: gleipnir
- Index(es):