diff --git a/contrib/numeric_score/main.php b/contrib/numeric_score/main.php index 8baae0a1..c9811538 100644 --- a/contrib/numeric_score/main.php +++ b/contrib/numeric_score/main.php @@ -182,7 +182,7 @@ class NumericScore extends Extension { public function onNumericScoreSet(NumericScoreSetEvent $event) { global $user; - log_info("numeric_score", "Rated Image #{$event->image_id} as {$event->score}"); + log_debug("numeric_score", "Rated Image #{$event->image_id} as {$event->score}"); $this->add_vote($event->image_id, $user->id, $event->score); } diff --git a/ext/comment/main.php b/ext/comment/main.php index af716ce6..ebf8ebe7 100644 --- a/ext/comment/main.php +++ b/ext/comment/main.php @@ -487,6 +487,9 @@ class CommentList extends Extension { // all checks passed else { + if($user->is_anonymous()) { + set_prefixed_cookie("nocache", "Anonymous Commenter", time()+60*60*24, "/"); + } $database->Execute( "INSERT INTO comments(image_id, owner_id, owner_ip, posted, comment) ". "VALUES(:image_id, :user_id, :remote_addr, now(), :comment)", diff --git a/ext/tag_edit/theme.php b/ext/tag_edit/theme.php index 6b010d1a..33119847 100644 --- a/ext/tag_edit/theme.php +++ b/ext/tag_edit/theme.php @@ -100,6 +100,9 @@ class TagEditTheme extends Themelet { $proto_domain = explode("://", $source); $h_source = html_escape($proto_domain[1]); $u_source = html_escape($source); + if(endsWith($h_source, "/")) { + $h_source = substr($h_source, 0, -1); + } return "$h_source"; } return "Unknown";