potsky/laravel-localization-helpers

Problem with backup when dot is in path

marvinschroeder opened this issue · 4 comments

We have a DOCUMENT_ROOT structure where the domain name is part of the path. For example: /var/www/kd/domain.com/

When the command :missing is backup'ing the files, we get an Error Exception because the path is incorrect and the permission is denied. The path generated by your script (preg_match) is like:
/var/www/kd/domain.20160129_151020.php

So i propose to change the generation of the backup directory with keeping in mind that there could be a doc root with a dot in the path.

Hi marvinschroeder,

Thank for reporting and fortunately you have a permission denied error !

I will check this right now and publish a fix.

Hi !

Ok it is fixed now, you can update the package with composer. Sorry for this ugly bug :-(

Thanks! It's working now! Great package!

Thank you!