Skip to content
  • rswindell's avatar
    cd57c421
    Fix bug with filename aliases (in ftpalias.cfg) which caused an incompatility · cd57c421
    rswindell authored
    with Chrome (the browser). Chrome will attempt to "CWD" to a filename and if
    that filename was an alias from the ftpalias.cfg, we would return a
    successful (213) response - erroneously. The code did appear to check for
    this condition by calling ftpalias() with a NULL second (filename)
    parameter, but that didn't actually work. The 'alias+1' check for a slash
    appears to have (always?) been clearly wrong as a prefixed slash is already
    skipped (in the requested path) before calling ftpalias().
    cd57c421
    Fix bug with filename aliases (in ftpalias.cfg) which caused an incompatility
    rswindell authored
    with Chrome (the browser). Chrome will attempt to "CWD" to a filename and if
    that filename was an alias from the ftpalias.cfg, we would return a
    successful (213) response - erroneously. The code did appear to check for
    this condition by calling ftpalias() with a NULL second (filename)
    parameter, but that didn't actually work. The 'alias+1' check for a slash
    appears to have (always?) been clearly wrong as a prefixed slash is already
    skipped (in the requested path) before calling ftpalias().
Loading