Gelbooru

Notice: We are now selling NEW Gelbooru Merch~! Domestic shipping is free on all orders! Do you have an artist tag on Gelbooru? Let us know so we can properly credit you!

Ticket Information - ID: #1392


ID:Category:SeverityReproducibilityDate SubmittedUpdated By:
0001392Bug Reportingnormalalways02/28/25 10:33AMburner_identification
Reporterburner_identification
Assigned to:lozertuser
Resolution:Open
View StatusPublic
Version:Gelbooru Beta 0.2.5
Target Version:
Summary:Posts api returns empty with tags containing quotation marks
Description:When querying the posts API, tags containing quotation marks return empty, even when the offending characters are url encoded.

Simple example: i"s

Both:
https://gelbooru.com/index.php?page=dapi&s=post&q=index&tags=i%22s
https://gelbooru.com/index.php?page=dapi&s=post&q=index&tags=i"s

Returns:
<posts limit="100" offset="0" count="0"/>

When view through the UI link, it shows the containing posts normally:
https://gelbooru.com/index.php?page=post&s=list&tags=i%22s
Additional Info:Further examples:

https://gelbooru.com/index.php?page=dapi&s=post&q=index&tags=hime-sama_"goumon"_no_jikan_desu

https://gelbooru.com/index.php?page=dapi&s=post&q=index&tags=s-rank_monster_no_%22behemoth%22_dakedo_neko_to_machigawarete_elf_musume_no_pet_toshite_kurashitemasu