i finaly traced it back to mosGetParam wich has been changed about a month and a half ago.
--- quoting syntax from API ---
--- end quote api ---mixed mosGetParam ( array &$arr, string $name [, mixed $default [, int $mask ]] )
$arr
is the array that the parameter will be retrieved from. This can be any array but the most commonly used ones are $_POST and $_GET.
$name
is the name of the parameter field to be retrieved.
$default
is the optional default value that will be returned if $name is not present in $arr. This parameter is optional and if omitted will default to null.
$mask
is an optional parameter containing one or more of the following flags:
_MOS_ALLOWHTML
Do not strip HTML tags from the data.
_MOS_NOTRIM
Do not remove leading and trailing whitespace characters.
_MOS_ALLOWRAW
Do not filter the data. Introduced in Joomla 1.0.
If omitted this parameter defaults to 0 (that is, data will be stripped of HTML tags and leading and trailing whitespace characters).
What exactly is ment with FILTER in _MOS_ALLOWRAW ?
Lets say i POST a score '100.99'
When i use:
$score = mosGetParam( $_POST, 'score',0);
I get $score=100 , but i used to get the full 100.99
When i use
$score = mosGetParam( $_POST, 'score',0, _MOS_ALLOWRAW )
I finaly get my $score=100.99 back
Now it could be me but .99 is neither a leading nor a trailing whitespace and a very important piece of my data..
Is this a bug ??
~Trail.