Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path Replacement #2696

Closed
commentics opened this issue Feb 20, 2015 · 0 comments
Closed

Path Replacement #2696

commentics opened this issue Feb 20, 2015 · 0 comments

Comments

@commentics
Copy link
Contributor

define('DIR_APPLICATION', str_replace('\'', '/', realpath(dirname(__FILE__))) . '/');

Is it really the intention when creating the paths to replace the single quote? It seems more likely that the backslash is the character that is meant to be replaced, in which case the following line should be used:

define('DIR_APPLICATION', str_replace('\\', '/', realpath(dirname(__FILE__))) . '/');

The above change makes the difference between this path:
define('DIR_APPLICATION', 'C:\wamp\www\opencart/catalog/');

And this one:
define('DIR_APPLICATION', 'C:/wamp/www/opencart/catalog/');

ADDCreative added a commit to opencart-ce/opencart-ce that referenced this issue Oct 26, 2018
ADDCreative added a commit to opencart-ce/opencart-ce that referenced this issue Oct 26, 2018
ADDCreative added a commit to opencart-ce/opencart-ce that referenced this issue Oct 26, 2018
ADDCreative added a commit to opencart-ce/opencart-ce that referenced this issue Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants