Closed Ayutac closed 9 months ago
Huh, I'm pretty sure they were forbidden, but there was no unit tests added for that and now they are allowed again...
4b8bc82ee makes them forbidden, and adds a test to make sure they are forbidden, and also changes the behaviour when trying to set an invalid tag from "ignore invalid tags and set the others" to "show an error message"
Server Software about: title: "Wandering Inn Fanworks" theme: "twi" url: "https://twifanworks.shelter.moe/"
versions: shimmie: "b1dc9892d5c5d728c631512c16ea19359fd3b35b" schema: 21 php: "8.1.2-1ubuntu2.14" db: "pgsql PostgreSQL 14.10 (Ubuntu 14.10-0ubuntu0.22.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit" os: "Linux shelterv4 6.5.0-14-generic #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 18:15:30 UTC 2 x86_64" server: "Apache"
extensions: core: ["admin","alias_editor","bbcode","comment","download","et","ext_manager","four_oh_four","handle_pixel","help_pages","image","index","media","mime","setup","static_files","system","tag_edit","tag_list","upgrade","upload","user","user_config","view"] extra: ["autocomplete","emoticons_list","et_server","favorites","graphql","handle_mp3","handle_svg","handle_video","home","image_view_counter","link_image","ouroboros_api","pools","post_titles","random_list","rating","regen_thumb","relationships","report_image","rotate","rss_comments","rss_images","rule34","sitemap","source_history","tag_categories","tag_editcloud","tag_history","tag_tools","tagger_xml","transcode","transcode_video"] handled_mimes: ["image/jpeg","image/gif","image/png","image/webp","audio/mpeg","image/svg+xml","video/x-ms-asf","video/x-msvideo","video/x-flv","video/x-matroska","video/mp4","video/ogg","video/quicktime","video/webm"]
stats: images: 4113 comments: 302 users: 93
media: memory_limit: "500.0MB" disk_use: "510.3GB" disk_total: "687.9GB"
thumbnails: engine: "convert" quality: 75 width: 192 height: 192 scaling: 100 mime: "image/jpeg"
Client Software (please complete the following information)
What steps trigger this bug
What did you expect to happen? Entering tags with * probably shouldn't be allowed.
What actually happened? Someone (probably me) mistyped and created a tag male in my booru. It's supposed to be male ofc, but I can't find it because the search for male returns the hundreds of female tags of course.
If there is no escaping the *, adding tags with that character should be forbidden.