For 1.0
==========================================================================
- Quote marks screw up adding a bookmark
-- Move htaccess management into the configuration page
-
Everything else
==========================================================================
if($epoch eq 0) { $epoch = time; }
$sth = $dbh->prepare($sql);
- $sth->execute($url, $md5, $title, $description, $access_level, $epoch)
+ $sth->execute($url, $md5, $dbh->quote($title), $dbh->quote($description), $access_level, $epoch)
or die $DBI::errstr;
$icount++;
use LWP::UserAgent;
use HTTP::Request;
use HTTP::Response;
+use Data::Validate::URI qw(is_uri);
my $NL = "<br />\n";
my @valid;
print "URL or Title can not be empty";
exit;
}
+
+ if(!is_uri($url)) {
+ print "This is not a valid URL";
+ exit;
+ }
if (defined(param('access_level'))) {
if (param('access_level') eq 'on') {
if ($tagcount < 1) {
my $sql = "insert into $tbl_tags (name) values(?)";
my $sth = $dbh->prepare($sql);
- $sth->execute($cur);
+ $sth->execute($dbh->quote($cur));
}
# and fetch the tag ID