Commit b516e36c8cd2d27ffd281163fb71439aa18dffbc
1 parent
2bb0bb30
Exists in
master
and in
1 other branch
- Correção de problema na conexão ftp
git-svn-id: http://svn.softwarepublico.gov.br/svn/cacic/cacic/trunk/gerente@924 fecfc0c7-e812-0410-ae72-849f08638ee7
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
include/library.php
| ... | ... | @@ -1759,7 +1759,7 @@ function CheckFtpLogin($server, $user, $pass, $port) |
| 1759 | 1759 | $data = fgets($sck, 1024); |
| 1760 | 1760 | fputs($sck, "PASS $pass\n"); |
| 1761 | 1761 | $data = fgets($sck, 1024); |
| 1762 | - if (ereg("230", $data)) | |
| 1762 | + if (ereg("230", $data) or ereg("220", $data)) | |
| 1763 | 1763 | { |
| 1764 | 1764 | # User logged in |
| 1765 | 1765 | return 1; | ... | ... |