diff options
Diffstat (limited to 'modules/g2_import/helpers/g2_import.php')
| -rw-r--r-- | modules/g2_import/helpers/g2_import.php | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php index 91ca1e63..910f9342 100644 --- a/modules/g2_import/helpers/g2_import.php +++ b/modules/g2_import/helpers/g2_import.php @@ -46,6 +46,10 @@ class g2_import_Core {    }    static function is_valid_embed_path($embed_path) { +    $mod_path = VARPATH . "modules/g2_import/" . md5($embed_path); +    if (file_exists($mod_path)) { +      dir::unlink($mod_path); +    }      return file_exists($embed_path) && g2_import::init_embed($embed_path);    } | 
