diff options
author | josh4trunks <joshruehlig@gmail.com> | 2014-06-11 21:47:45 -0700 |
---|---|---|
committer | josh4trunks <joshruehlig@gmail.com> | 2014-06-11 21:47:45 -0700 |
commit | 1b02991a1dfd3d8cb8a7992609e0235bb97876ea (patch) | |
tree | cf0790c8a195b30e3a8a0e2c8930eda2d4b85bf2 /status.php | |
parent | 55ccd6da51c10ad3403fbdf32c4de09edaf102db (diff) | |
download | nextcloud-server-1b02991a1dfd3d8cb8a7992609e0235bb97876ea.tar.gz nextcloud-server-1b02991a1dfd3d8cb8a7992609e0235bb97876ea.zip |
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
Diffstat (limited to 'status.php')
0 files changed, 0 insertions, 0 deletions