]> source.dussan.org Git - nextcloud-server.git/commit
Fixes based on suggestions
authorjosh4trunks <joshruehlig@gmail.com>
Thu, 12 Jun 2014 04:47:45 +0000 (21:47 -0700)
committerjosh4trunks <joshruehlig@gmail.com>
Thu, 12 Jun 2014 04:47:45 +0000 (21:47 -0700)
commit1b02991a1dfd3d8cb8a7992609e0235bb97876ea
treecf0790c8a195b30e3a8a0e2c8930eda2d4b85bf2
parent55ccd6da51c10ad3403fbdf32c4de09edaf102db
Fixes based on suggestions

I use the term socket for any extension, either unix socket, or internet socket (port).

I check if the socket is all digits
* only integers 0 and larger would pass this test.
I then check if the string is less than or equal to the maximum port number.

By using "if($socket)" I make sure socket isn't false, empty, or the string '0'.

I don't believe I need to initialize $port because $port will always be set if $socket is true. Please show me if I am wrong here. Thanks
lib/private/db.php