Changeset 96253 in webkit


Ignore:
Timestamp:
Sep 28, 2011 1:18:35 PM (13 years ago)
Author:
Joseph Pecoraro
Message:

FTPDirectoryDocument Shows Garbled String for Last Modified Date
https://bugs.webkit.org/show_bug.cgi?id=69011

Reviewed by Dan Bernstein.

Force WTF::String concatenation instead of an accidental char* pointer addition.

  • html/FTPDirectoryDocument.cpp:

(WebCore::processFileDateString):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r96249 r96253  
     12011-09-28  Joseph Pecoraro  <joepeck@webkit.org>
     2
     3        FTPDirectoryDocument Shows Garbled String for Last Modified Date
     4        https://bugs.webkit.org/show_bug.cgi?id=69011
     5
     6        Reviewed by Dan Bernstein.
     7
     8        Force WTF::String concatenation instead of an accidental char* pointer addition.
     9
     10        * html/FTPDirectoryDocument.cpp:
     11        (WebCore::processFileDateString):
     12
    1132011-09-28  Nate Chapin  <japhet@chromium.org>
    214
  • trunk/Source/WebCore/html/FTPDirectoryDocument.cpp

    r86542 r96253  
    254254
    255255    if (fileTime.tm_year > -1)
    256         dateString = months[month] + ' ' + String::number(fileTime.tm_mday) + ", " + String::number(fileTime.tm_year);
     256        dateString = String(months[month]) + " " + String::number(fileTime.tm_mday) + ", " + String::number(fileTime.tm_year);
    257257    else
    258         dateString = months[month] + ' ' + String::number(fileTime.tm_mday) + ", " + String::number(now.tm_year);
     258        dateString = String(months[month]) + " " + String::number(fileTime.tm_mday) + ", " + String::number(now.tm_year);
    259259
    260260    return dateString + timeOfDay;
Note: See TracChangeset for help on using the changeset viewer.