Ticket #7831: Ticket7831.patch

File Ticket7831.patch, 913 bytes (added by henri, 13 years ago)
  • .cpp

    old new  
    11#include <filezilla.h>
    22#include "directorylistingparser.h"
    33#include "ControlSocket.h"
     4#include "../interface/Options.h"
    45
    56#ifdef _DEBUG
    67#define new DEBUG_NEW
     
    1718
    1819#endif
    1920
     21extern wxString StripVMSRevision(const wxString& name);
     22
    2023class CToken
    2124{
    2225protected:
     
    16501653        else
    16511654            entry.name = token.GetString().Left(pos - 4) + token.GetString().Mid(pos);
    16521655    }
    1653     else
    1654         entry.name = token.GetString();
    1655 
     1656    else //files
     1657    {
     1658        if (COptions::Get()->GetOptionVal(OPTION_STRIP_VMS_REVISION))
     1659            entry.name = StripVMSRevision(token.GetString());
     1660        else
     1661            entry.name = token.GetString();
     1662    }
    16561663    // Some VMS servers escape special characters like additional dots with ^
    16571664    entry.name = Unescape(entry.name, '^');
    16581665