[danbooru api] Properly escape source attribute
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1074 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
bf32003200
commit
c3732aaa84
1 changed files with 4 additions and 1 deletions
|
@ -14,6 +14,9 @@ find_posts - sort of works, filename is returned as the original filename and pr
|
|||
find_tags - id, name, and after_id all work but the tags parameter is ignored just like danbooru 1.0 ignores it
|
||||
|
||||
CHANGELOG
|
||||
13-OCT-08 8:00PM CST - JJS
|
||||
Bugfix - Properly escape source attribute
|
||||
|
||||
17-SEP-08 10:00PM CST - JJS
|
||||
Bugfix for changed page name checker in PageRequestEvent
|
||||
|
||||
|
@ -293,7 +296,7 @@ class DanbooruApi implements Extension
|
|||
continue;
|
||||
$taglist = $img->get_tag_list();
|
||||
$owner = $img->get_owner();
|
||||
$xml .= "<post md5=\"$img->hash\" rating=\"Questionable\" date=\"$img->posted\" is_warehoused=\"false\" file_name=\"$img->filename\" tags=\"" . $this->xmlspecialchars($taglist) . "\" source=\"$img->source\" score=\"0\" id=\"$img->id\" author=\"$owner->name\"/>\n";
|
||||
$xml .= "<post md5=\"$img->hash\" rating=\"Questionable\" date=\"$img->posted\" is_warehoused=\"false\" file_name=\"$img->filename\" tags=\"" . $this->xmlspecialchars($taglist) . "\" source=\"" . $this->xmlspecialchars($img->source) . "\" score=\"0\" id=\"$img->id\" author=\"$owner->name\"/>\n";
|
||||
}
|
||||
$xml .= "</posts>";
|
||||
$page->set_data($xml);
|
||||
|
|
Reference in a new issue