On Thursday 13 November 2008 17:33, xor at freenetproject.org wrote:
> Author: xor
> Date: 2008-11-13 17:33:43 +0000 (Thu, 13 Nov 2008)
> New Revision: 23528
> 
> Modified:
>    trunk/plugins/Freetalk/FTBoard.java
> Log:
> Add FIXME.
> 
> Modified: trunk/plugins/Freetalk/FTBoard.java
> ===================================================================
> --- trunk/plugins/Freetalk/FTBoard.java       2008-11-13 17:27:32 UTC (rev 
> 23527)
> +++ trunk/plugins/Freetalk/FTBoard.java       2008-11-13 17:33:43 UTC (rev 
> 23528)
> @@ -68,6 +68,9 @@
>               int firstDot = name.indexOf('.');
>               String firstPart = firstDot!=-1 ? name.substring(0, firstDot) : 
> name;
>  
> +             /* FIXME: This is just the basic check, we should do more 
> checks:
> +              * The rest of the name should match a whitelist of allowed 
> punctuation 
(excluding for example &<>%#), or letters (i.e. not necessarily
> +              * English letters) according to Character.isLetter(). */

Numerals too.

>               return name.matches("[a-zA-Z0-9.]") || 
> ISOLanguages.contains(firstPart);
>       }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20081113/800ba3f9/attachment.pgp>

Reply via email to