]> source.dussan.org Git - nextcloud-server.git/commit
request.php: add type check to the not empty check of a string
authorherbrechtsmeier <stefan@herbrechtsmeier.net>
Sat, 9 Mar 2013 10:39:20 +0000 (11:39 +0100)
committerherbrechtsmeier <stefan@herbrechtsmeier.net>
Sat, 9 Mar 2013 10:53:15 +0000 (11:53 +0100)
commitecb9d37b55f5c55545a2c0ec475e22d71bd4dcc8
treeb1d5ad56d04d1e343e340177e185454c6b5081f0
parentd4f98923b9be7f3e6805573085bf9fedfaff836c
request.php: add type check to the not empty check of a string

The not equal comparison (<>) of a variable with an empty string
could lead to false positive results as the compare do not check
the type and thereby could not make sure that the checked variable
is a string. The usage of the not identical comparison operator
(!==) make sure that the variable is a string and not empty.
lib/request.php