WordPress.org

Make WordPress Core

Changeset 34282


Ignore:
Timestamp:
09/18/2015 08:22:17 AM (4 years ago)
Author:
dd32
Message:

Updates: FTP: Add a missing PCRE modifer in [34281].

See #16026, #33432x

File:
1 edited

Legend:

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

    r34281 r34282  
    445445        if(!$this->_exec("MDTM ".$pathname, "mdtm")) return FALSE;
    446446        if(!$this->_checkCode()) return FALSE;
    447         $mdtm = preg_replace("/^[0-9]{3} ([0-9]+).*$/", "\\1", $this->_message);
     447        $mdtm = preg_replace("/^[0-9]{3} ([0-9]+).*$/s", "\\1", $this->_message);
    448448        $date = sscanf($mdtm, "%4d%2d%2d%2d%2d%2d");
    449449        $timestamp = mktime($date[3], $date[4], $date[5], $date[1], $date[2], $date[0]);
Note: See TracChangeset for help on using the changeset viewer.