Make WordPress Core

Changeset 35942


Ignore:
Timestamp:
12/15/2015 12:28:59 AM (11 years ago)
Author:
dd32
Message:

Filesystem API: Cast the port to an int in the FTPSockets class. PemFTP requires that the port be specified as an integer, not a numeric string.
Fixes #35088

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php

    r35664 r35942  
    4040                        $this->options['port'] = 21;
    4141                else
    42                         $this->options['port'] = $opt['port'];
     42                        $this->options['port'] = (int) $opt['port'];
    4343
    4444                if ( empty($opt['hostname']) )
Note: See TracChangeset for help on using the changeset viewer.