diff --git a/contrib/notes/theme.php b/contrib/notes/theme.php
index 0da3a29e..bba37b28 100644
--- a/contrib/notes/theme.php
+++ b/contrib/notes/theme.php
@@ -57,12 +57,12 @@ class NotesTheme extends Themelet {
$parsedNote = str_replace("\r", "\\r", $parsedNote);
$to_json[] = array(
- 'x1': $note["x1"],
- 'y1': $note["y1"],
- 'height': $note["height"],
- 'width': $note["width"],
- 'note': $parsedNote,
- 'note_id': $note["id"],
+ 'x1' => $note["x1"],
+ 'y1' => $note["y1"],
+ 'height' => $note["height"],
+ 'width' => $note["width"],
+ 'note' => $parsedNote,
+ 'note_id' => $note["id"],
);
}
diff --git a/core/user.class.php b/core/user.class.php
index 0c69eabd..c36f96a9 100644
--- a/core/user.class.php
+++ b/core/user.class.php
@@ -232,7 +232,7 @@ class User {
if(!empty($this->email)) {
$hash = md5(strtolower($this->email));
$s = $config->get_string("avatar_gravatar_size");
- $d = $config->get_string("avatar_gravatar_default");
+ $d = urlencode($config->get_string("avatar_gravatar_default"));
$r = $config->get_string("avatar_gravatar_rating");
return "";
}
diff --git a/ext/comment/main.php b/ext/comment/main.php
index 2ebed4c3..d1b121b8 100644
--- a/ext/comment/main.php
+++ b/ext/comment/main.php
@@ -471,7 +471,7 @@ class CommentList extends Extension {
throw new CommentPostingException("Comment too repetitive~");
}
else if($user->is_anonymous() && !$this->hash_match()) {
- set_prefixed_cookie("nocache", "Anonymous Commenter", time()+60*60*24*$config->get_int('login_memory'), "/");
+ set_prefixed_cookie("nocache", "Anonymous Commenter", time()+60*60*24, "/");
throw new CommentPostingException(
"Comment submission form is out of date; refresh the ".
"comment form to show you aren't a spammer~");
diff --git a/ext/tag_edit/theme.php b/ext/tag_edit/theme.php
index 42f1bf87..82dfcb46 100644
--- a/ext/tag_edit/theme.php
+++ b/ext/tag_edit/theme.php
@@ -40,7 +40,7 @@ class TagEditTheme extends Themelet {
$ip = $user->can("view_ip") ? " (".show_ip($image->owner_ip, "Image posted {$image->posted}").")" : "";
return "