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: #376


ID:Category:SeverityReproducibilityDate SubmittedUpdated By:
0000376Bug ReportingHighalways04/11/10 04:53AM7chords
ReporterSubmariner
Assigned to:geltas
Resolution:Open
View StatusPublic
Version:0.2.0
Target Version:0.2.0
Summary:rn (tagging glitch)
Description:Some random tags are tagged with "rn" before or after the tag.
Additional Info:http://gelbooru.com/index.php?page=post&s=list&tags=rnrnvocaloid

Keep in mind that this isn't related to tag vandalism.
lozertuser replied at 2010-04-11 18:13:20
It first looked like two m's but then I realized it was rn. It seems the return carriage is a bit broken...

TiTaNz replied at 2010-06-16 19:14:24
There's a few that are showing up with a %09 in front now.

http://gelbooru.com/index.php?page=tags&s=list&tags=*bishoujo_senshi_sailor_moon&sort=asc&order_by=updated
http://gelbooru.com/index.php?page=tags&s=list&tags=*tsukino_usagiandhino_rei&sort=asc&order_by=updated
http://gelbooru.com/index.php?page=tags&s=list&tags=*mizuno_ami&sort=asc&order_by=updated

lozertuser replied at 2010-06-16 22:32:25
those are tabs, and they should no longer even be doable.

Dolljoints replied at 2012-05-07 22:02:54
There was recently some discussion in the forum over whether this is still reproducible.
http://gelbooru.com/index.php?page=forum&s=view&id=2083

In my testing, a return directly before the first tag was successfully stripped, as was a return directly after the last tag, tag space return tag, and a return between two spaces, but separating two tags by one or more carriage returns and no other whitespace characters still resulted in fused tags.

You can see fused tags produced today, e.g. yellow_eyesrnrnfoobar yakumo_ranrnrn2girls in the tag history at http://gelbooru.com/index.php?page=history&type=tag_history&id=1041171

7chords replied at 2018-05-23 16:48:23
Is this still being worked on? I can find a bunch of tags with
tab: https://gelbooru.com/index.php?page=tags&s=list&tags=*%09*
carriage return: https://gelbooru.com/index.php?page=tags&s=list&tags=*%0D*
line feed: https://gelbooru.com/index.php?page=tags&s=list&tags=*%0A*
The later two will contain mostly the same images.

I don't know how you're parsing the tags, but can you not just use a regex engine to split at "\s+" ? Maybe also include all the new unicode whitespace?
Unfortunately the post search strips the whitespace from the query so I can't search for images with tab/CR/LF and fix them.