Re: FILTER_SANITIZE_NUMBER_FLOAT non/sense [message #177022 is a reply to message #177020] |
Thu, 16 February 2012 16:32 |
Thomas Mlynarczyk
Messages: 131 Registered: September 2010
Karma:
|
Senior Member |
|
|
Denis McMahon schrieb:
> On Thu, 16 Feb 2012 14:22:08 +0100, Thomas Mlynarczyk wrote:
>
>> On the other hand I seriously question the concept of a server side
>> locale in the context of the world wide web. If locale must be, then it
>> ought to be the client's locale.
>
> Perhaps, but that just means you should use the client's locale when
> validating things like dates and numbers on the server. Of course this
> assumes you know the client's locale.
True. The only reliable way to do this would be to simply ask the client
and then maybe store their locale in a cookie. My point was that any
"server locale" is completely useless since there is in general no
reliable correlation between the server's and the client's location.
> You still need to do your validation server side. You can't trust client
> side validation.
I never said the contrary. Nor was I referring to anything "done
clientside". I just meant that the server's locale is of no use to the
client who possibly uses a different locale.
Greetings,
Thomas
--
Ce n'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont raison!
(Coluche)
|
|
|