Bug #4091

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

Added by Irene Höppner almost 12 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Must have
Category:
Utility
Start date:
2009-07-31
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

C:\h\flow3\intranet\Web

becomes

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

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


Files

#1

Updated by Karsten Dambekalns almost 12 years ago

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

Updated by Bastian Waidelich almost 12 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 almost 12 years ago

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

Applied in changeset r2981.

Also available in: Atom PDF