From: Banana Date: Mon, 20 Jun 2011 12:02:08 +0000 (+0200) Subject: whoops X-Git-Tag: 2.1-alpha-2019-0-29~110 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=12ee422f1655daf74bf4d5883c70e713d3b5aae1;p=insipid.git whoops --- diff --git a/lib/Insipid/Bookmarks.pm b/lib/Insipid/Bookmarks.pm index 13c4fb0..25bbf52 100755 --- a/lib/Insipid/Bookmarks.pm +++ b/lib/Insipid/Bookmarks.pm @@ -85,7 +85,7 @@ sub add_bookmark { if($epoch eq 0) { $epoch = time; } $sth = $dbh->prepare($sql); - $sth->execute($url, $md5, $dbh->quote($title), $dbh->quote($description), $access_level, $epoch) + $sth->execute($url, $md5, $title, $description, $access_level, $epoch) or die $DBI::errstr; $icount++; diff --git a/lib/Insipid/Tags.pm b/lib/Insipid/Tags.pm index 3b98a7f..0a5148d 100755 --- a/lib/Insipid/Tags.pm +++ b/lib/Insipid/Tags.pm @@ -304,7 +304,7 @@ sub set_tags { if ($tagcount < 1) { my $sql = "insert into $tbl_tags (name) values(?)"; my $sth = $dbh->prepare($sql); - $sth->execute($dbh->quote($cur)); + $sth->execute($cur); } # and fetch the tag ID