FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Minor cr/lf bug.
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Minor cr/lf bug. [message #14082] Wed, 05 November 2003 04:25 Go to next message
Xodnizel Test   United States
Messages: 7
Registered: November 2003
Karma: 0
Junior Member
You might want to strip \n and \r(from usernames/aliases) when people register. Stripping everything from 00-1f should probably be safe, too.

[Updated on: Wed, 05 November 2003 04:33]

Report message to a moderator

Re: Minor cr/lf bug. [message #14091 is a reply to message #14082] Wed, 05 November 2003 13:46 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Good idea, I'll make it strip 0-31 127-159 character list from the user names.

FUDforum Core Developer
Re: Minor cr/lf bug. [message #14095 is a reply to message #14082] Wed, 05 November 2003 16:01 Go to previous messageGo to next message
Xodnizel Test   United States
Messages: 7
Registered: November 2003
Karma: 0
Junior Member
Using ctype_print http://www.php.net/ctype_print where available might be a better idea, still.

Stripping out 0-31 probably won't mess with very many foreign character-coding schemes(well, not the well-designed ones at least), but if you strip out anything in 128+, you might have a problem.

I'll run some tests and see how well ctype_print works.
Re: Minor cr/lf bug. [message #14096 is a reply to message #14095] Wed, 05 November 2003 16:02 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Can't use that function, because it is not always avaliable.

Also the ctype_print() only checks the given data, the actual code removes the invalid characters.


FUDforum Core Developer

[Updated on: Wed, 05 November 2003 16:03]

Report message to a moderator

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: undefined function in RC3
Next Topic: Deleting messages fails in "sent" and "trash"
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 22:08:13 GMT 2024

Total time taken to generate the page: 0.02328 seconds