Print Topic - Archive
E-Blah Community / Language Support / invalid chars in screen name
Posted by: jake, November 2, 2002, 4:42pm
Hi
First, I'd like to thank you for great job you are doing. Excellent board!
I am working on translation to cyrillic, and it's working well so far. Just wanted to let you know that I ran into a small problem. If the board is to be truly multilingual you must remove this line -&error($profiletxt[66]) if($FORM{'sn'} !~ /\A[0-9A-Za-z#%+,-\.@†^_ ]+\Z/); - from profile.pl, so the users can use weird characters in their screen name.
I removed the line and board works, but if you know of a potential problem with this pls let me know. Visit my board at
http://www.polaca.com/Blah/Blah.pl?thank you again and keep up the good work.
Posted by: DeathBox, November 2, 2002, 11:29pm; Reply: 1
well as far as i know, thats a great potential danger because the people could hack the board easily just by using variables in their name, i beleive... I suggest you put the line back lol. And as far as i know, its only signup names that arent allowed funky charaters, not your viewed names so imo it isnt really neccisary.
P.S. I just looked at your board.. and now i see why you want wierd characters lol... it still isnt very safe though. I'll look into that. Unfortunatly i dont know the language your board is in.
Posted by: jake, November 3, 2002, 12:04am; Reply: 2
I think it's OK not to allow weird characters in signup name, but it should be OK to allow it in screen name. This is absolutely necessary if the board is in another language.
The language I am translating into is Serbian Cyrillic, are you telling me you don't understand it???;D
BTW, can you make sure that everything, i mean everything that should be translated is in language files, not the code files. I ran into several instances so far, where i had to modify a code file to get the desired translation.
I hope I am not asking too much, and I realize the board is still very "young", so take your time....
Cheers,
Jake
Posted by: Justin, November 4, 2002, 3:39pm; Reply: 3
BTW, can you make sure that everything, i mean everything that should be translated is in language files, not the code files. I ran into several instances so far, where i had to modify a code file to get the desired translation.
What do you mean???
Posted by: jake, November 4, 2002, 9:11pm; Reply: 4
I mean, if you are translating into another language, all translation should be confined to .lng file, no need to modify any of .pl files.
Am i asking too much???:B
Posted by: Justin, November 5, 2002, 3:32pm; Reply: 5
It's suppose to be. Tell me what char. I should add to the "$FORM{'sn'} !~ /\A[0-9A-Za-z#%+,-\.@†^_ ]+\Z/);" and I will add it, can't add every single character, *shrug*
- Justin
Posted by: Michael (Guest), November 10, 2002, 1:24pm; Reply: 6
"I mean, if you are translating into another language, all translation should be confined to .lng file, no need to modify any of .pl files."
Had the same Problem when translating the board to german.
Eg. Manageboard.pl reads the "Delete"-$txt from the Manageboard.lng. Now, when the do change from "delete" to "löschen" the Manageboard.pl does not find any more what to do, so no action happens. Maybe this is in the managecat.pl. I don't know sure. But I think You'll find out.
Michael.
Posted by: Justin, November 10, 2002, 4:58pm; Reply: 7
Elaborate more please. :)
Posted by: Michael (Guest), November 11, 2002, 2:13am; Reply: 8
Change textstring [10] in mangaboards.lng. Then delete-action does not happen in manageboards.pl. Managboards.pl reads this String, and then I think compares it with the string in manageboard.pl. "Remove" and "xyz" does not compare, so...
Michael.
Posted by: Justin, November 11, 2002, 10:40am; Reply: 9
I'll fix it when I get back to my comp. :) Thanks.
Posted by: jake, April 6, 2005, 10:00am; Reply: 10
Quoted from jake
Hi
If the board is to be truly multilingual you must remove this line -&error($profiletxt[66]) if($FORM{'sn'} !~ /\A[0-9A-Za-z#%+,-\.@†^_ ]+\Z/); - from profile.pl, so the users can use weird characters in their screen name.
I removed the line and board works, but if you know of a potential problem with this pls let me know.
Hi Justin.
This is still a problem. People cannot use "weird" characters in their screen name. I have to assume that this is a problem with anyone using a character set other than western.
Are you looking into solution to this?
Thanks
Posted by: Justin, April 6, 2005, 5:29pm; Reply: 11
Hmm. I believe if your pages character set is set inside your HTML page, when you submit the form it will change the characters into what they should be, I'm not positive on that, though. Does it do that? Make sure it's set to do that (in your HTML). I'll need to know characters that SHOULD be allowed that aren't allowed too, because removing all those from there would make screen names have just anything and some could cause the system not to work like it should. :P
Posted by: jake, April 6, 2005, 8:03pm; Reply: 12
Justin, the character set I am using is Cyrillic (Serbian)
А а - A a Н н - N n
Б б - B b Њ њ - W w
В в - V v О о - O o
Г г - G g П п - P p
Д д - D d Р р - R r
Ђ ђ - } ] С с - S s
Е е - E e Т т - T t
Ж ж - | \ Ћ ћ - " '
З з - Y y У у - U u
И и - I i Ф ф - F f
Ј ј - J j Х х - H h
К к - K k Ц ц - C c
Л л - L l Ч ч - : ;
Љ љ - Q q Џ џ - X x
М м - M m Ш ш - { [
These are the characters I am using in my US-English keyboard, they may be different on other keyboards.
"Hmm. I believe if your pages character set is set inside your HTML page, when you submit the form it will change the characters into what they should be, I'm not positive on that, though. Does it do that?"
No it does not, I get an error message that I am using illegal characters in sreen name.
[edit]
Since these characters cannot be displayed here, you can see them at this link
http://pravopis.tripod.com/azbuka.html
Posted by: Justin, April 7, 2005, 6:12am; Reply: 13
Let me have a link to you forum, if you don't mind.
Posted by: jake, April 7, 2005, 7:25am; Reply: 14
Posted by: Justin, April 7, 2005, 8:13am; Reply: 15
Hmm. :-/ Well, I would just probably comment the line out of Register.pl and ProfileEdit.pl. Would that work?
Posted by: jake, April 7, 2005, 8:50am; Reply: 16
That does work, but you said it's security risk. I will remove the lines, and you work on a patch if it is really a security risk.
thanks Justin
Posted by: Justin, April 7, 2005, 7:16pm; Reply: 17
I'm not really sure it is, lol ... just thought it might be. But I'm not really sure it'd hurt anything.
Print page generated: February 8, 2012, 10:15pm