Browse Source

Update inc_archives_functions.php

tags/6.1.0^2
tianya 3 years ago
parent
commit
4ae94ec651
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/admin/inc/inc_archives_functions.php

+ 1
- 1
src/admin/inc/inc_archives_functions.php View File

@@ -709,7 +709,7 @@ function UploadOneImage($upname, $handurl = '', $isremote = 1, $ntitle = '')
} }
if (!empty($handurl) && !preg_match("#^http:\/\/#i", $handurl) && file_exists($cfg_basedir.$handurl)) { if (!empty($handurl) && !preg_match("#^http:\/\/#i", $handurl) && file_exists($cfg_basedir.$handurl)) {
if (!is_object($dsql)) { if (!is_object($dsql)) {
$dsql = new DedeSql();
$dsql = new DedeSqli();
} }
$dsql->ExecuteNoneQuery("DELETE FROM `#@__uploads` WHERE url LIKE '$handurl' "); $dsql->ExecuteNoneQuery("DELETE FROM `#@__uploads` WHERE url LIKE '$handurl' ");
$fullUrl = preg_replace("#\.([a-z]*)$#i", "", $handurl); $fullUrl = preg_replace("#\.([a-z]*)$#i", "", $handurl);


Loading…
Cancel
Save