Bug #4091

F3\FLOW3\Utility\Files::getUnixStylePath() creates invalid paths on windows

Added by Irene Höppner about 6 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2009-07-31
Priority:Must have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:Utility
Target version:TYPO3 Flow Base Distribution - 1.0 alpha 3
PHP Version: Complexity:
Has patch: Affected Flow version:

Description

C:\h\flow3\intranet\Web

becomes

C://h/flow3/intranet/Web/

Windows doesn't like the // and fails to create directories later.

4091_getUnixStylePath_creates_invalid_paths_on_windows.patch Magnifier (1.1 kB) Bastian Waidelich, 2009-08-03 17:52

Associated revisions

Revision b8ed35e2
Added by Karsten Dambekalns about 6 years ago

[+BUGFIX] FLOW3 (Utility): getUnixStylePaths() no longer breaks paths with DOS drive letters, fixes #4091.

History

#1 Updated by Karsten Dambekalns about 6 years ago

  • Category set to Utility
  • Status changed from New to Accepted

#2 Updated by Bastian Waidelich about 6 years ago

This is a major bug that will kill FLOW3 on Windows with a fatal error.

I'm not sure wheter \F3\FLOW3\Utility\Files::getUnixStylePath() should replaced double slashes at all.. If I provide a path with wrong slashes like "/var/www//foo/" the path is probably invalid anyways..

Attached is a patch that simply skips the replacement of "//" to "/".

#3 Updated by Karsten Dambekalns about 6 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r2981.

Also available in: Atom PDF