This repository was archived by the owner on Nov 7, 2020. It is now read-only.
This repository was archived by the owner on Nov 7, 2020. It is now read-only.
ApiDocHelper::fileLink returns wrong url on Operating Systems that use "\" as DS #18
Open

Description
Created by Frank Förster, 25th Aug 2012. (originally Lighthouse ticket #88):
What to expect
On an OS that uses the backslash "" as directory separator, the fileLink helper function of the ApiDoc Helper should return a link like this:
http://path_to_cake_app/file/Controller/AppController.php
What happened
Instead it returns the links like this:
http://path_to_cake_app/file/Controller\AppController.php
What I did
Replace the backslash with forward slash after line 122
$trimmedFile = preg_replace('/\\\/', '/', $trimmedFile);