Strange "Location" Glitch

Index » Feedback

  • 1
 
Asriel Member
From: 東京 Registered: 2008-02-26 Posts: 1343

Hey Fabrice,

Minor detail, but I thought it was strange. In the place where you set our location in your profile, I went to go change it because I returned back to the US.
It used to be: 札幌市, and then I wanted to change it to 私♡札幌、but when I hit 'Save' it saved, and took me back to the site, except it was saved as: 私♡札&#24140
This would happen with pretty much any kanji before the heart, although just ♡札幌 seemed to work just fine.

I'm not really sure what's causing it, and I thought it was strange.
Anyway, I settled with I♡札幌, so I guess it's OK, but I figured this was some sort of bug, so I figured I'd report it.

ファブリス Administrator
From: Belgium Registered: 2006-06-14 Posts: 4021 Website

Hi Asriel,
sounds like an escaping bug. Better escape than not though as this prevents XSS attacks smile  &#xxxx is the html equivalent for writing the unicode character xxxx, where xxxx is decimal. I've put it on the todo list.

Jarvik7 Member
From: 名古屋 Registered: 2007-03-05 Posts: 3946

The site has always been broken for Japanese locations that are too long.

Advertising (register and sign in to hide this)
JapanesePod101 Sponsor
 
ファブリス Administrator
From: Belgium Registered: 2006-06-14 Posts: 4021 Website

Darn, I thought you meant on the main site. I was fixing it on the main site to utf8 and then realised the PunBB forum stores this as "latin" character set. The main site correctly filters out non alphanumeric characters on creation. PunBB's Profile edit page does not show a warning. Unfortunately this is too minor to warrant hacking the forum package, so I'll leave it at that.

In plain english: using kanji in the Profile "Location" field is a glitch and not meant to work. Since the html entity (&#xxxxx;) takes 8 latin characters I think you are limited to 3 kanji. If your city takes more than 3 kanji you're out of luck :p

Someday I think I will un-tie the forum from the main site. In retrospect I think the benefits were small compared to all the restrictions it imposed.

  • 1