V1.4.0 released: Upsell feature, New Product Page, New Stats Module, Security fixes

This commit is contained in:
Rohit Jain
2019-06-28 18:41:13 +05:30
parent 102343d2c0
commit b5d5bd7129
3884 changed files with 124528 additions and 70020 deletions

View File

@@ -356,3 +356,16 @@ function get_file_by_url($url)
return $data;
}
/**
* @param string $sourcePath
* @param array $paths List of paths to compare
*/
function stopIfSameDir($sourcePath, array $paths)
{
foreach ($paths as $path) {
if (realpath($sourcePath) === realpath($path)) {
die('wrong_path');
}
}
}