windows paths compatibility (#332)

This commit is contained in:
rik43 2018-03-11 17:30:25 +03:00 committed by Daniil Gentili
parent b1a39aa098
commit 5a6e60eada

View File

@ -32,7 +32,7 @@ class Serialization
public static function realpaths($file)
{
if ($file[0] !== '/') {
if (($file[0] !== '/') && ($file[1] !== ':')) {
$file = getcwd().'/'.$file;
}