Bug #4091
F3\FLOW3\Utility\Files::getUnixStylePath() creates invalid paths on windows
| Status: | Resolved | Start date: | 2009-07-31 | |
|---|---|---|---|---|
| Priority: | Must have | Due date: | ||
| Assignee: | Karsten Dambekalns | % Done: | 100% |
|
| Category: | Utility | |||
| Target version: | TYPO3 Flow Base Distribution - 1.0 alpha 3 | |||
| PHP Version: | Complexity: | |||
| Has patch: | FLOW3 version affected: | |||
| Votes: | 0 |
Description
C:\h\flow3\intranet\Web
becomes
C://h/flow3/intranet/Web/
Windows doesn't like the // and fails to create directories later.
Associated revisions
[+BUGFIX] FLOW3 (Utility): getUnixStylePaths() no longer breaks paths with DOS drive letters, fixes #4091.
History
Updated by Karsten Dambekalns almost 4 years ago
- Category set to Utility
- Status changed from New to Accepted
Updated by Bastian Waidelich almost 4 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 "/".
Updated by Karsten Dambekalns almost 4 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r2981.