create new tag
, view all tags
ALERT! NOTE: This is a SupplementalDocument topic which is not included with the official TWiki distribution. Please help maintain high quality documentation by fixing any errors or incomplete content. Put questions and suggestions concerning the documentation of this topic in the comments section below! Use the Support web for problems you are having using TWiki.

FAQ: How can I use international (I18N) characters in usernames?


By default, TWiki doesn't allow you to use international characters (i.e. letters other than A to Z) in usernames. The reason is security: TWiki "filters-in" usernames, to prevent a hacker from inserting nasty characters that might allow them to take control of your server.

From TWiki 4.0.3, this restriction only applies on servers that don't support perl safe pipes, such as Windows, but the workaround is the same.

The workaround is to find the commands in configure that use the |S% parameter type specification. These are:

These both use %USERNAME|S%. In configure change these to %USERNAME|U% (U is the type spec for an unchecked parameter).

This workaround will allow you to use I18N usernames, but it will also allow a username containing naughty characters to be passed unchecked to the command line on unsafe platforms.

Back to: TWikiFAQ

-- Contributors: CrawfordCurrie

Comments & Questions about this Supplemental Document Topic

I think the real solution here is to have parameter types such as 'alphabetic characters only, including international characters' - this would work fine for European languages and any other languages using single-byte character sets. For languages that require UTF-8 (because the traditional double-byte character sets such as Shift-JIS and GBK cannot be used with TWiki), we need to implement UnicodeSupport, which makes such checks quite trivial using Unicode regexes. Some coding required, but we need to make the jump to Unicode anyway to support multi-lingual sites, which some have requested.

See RegisterCgiScriptRewrite for followup.

-- RichardDonkin - 03 Sep 2006

Please use the Support forum if you have questions about TWiki features. This comment section is about the documentation of this topic.
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-01-31 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.