D25966: Ftp ioslave: fix 4 character time interpreted as year

Linus Kardell noreply at phabricator.kde.org
Fri Dec 13 20:24:35 GMT 2019


linagkar created this revision.
linagkar added a project: Frameworks.
linagkar requested review of this revision.

REVISION SUMMARY
  Previously, the code checked for years by checking for length 4. However this resulted in dates with single digit hours, e.g. 9:37, being interpreted as years. Thus, it would parse the hour as a year, in this case making it year 9. Now it instead checks for years by checking whether there's a colon.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D25966

AFFECTED FILES
  src/ioslaves/ftp/ftp.cpp

To: linagkar
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20191213/0b7594a4/attachment.html>


More information about the Kde-frameworks-devel mailing list