Changeset 806
- Timestamp:
- Jan 13, 2024 8:56:57 PM (4 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Upload.inc.php
r724 r806 361 361 362 362 if (!is_file($file_path_name)) { 363 $app->logMsg(sprintf('Error deleting nonexistentfile: %s', $file_path_name), LOG_ERR, __FILE__, __LINE__);363 $app->logMsg(sprintf('Error deleting; not a file: %s', $file_path_name), LOG_ERR, __FILE__, __LINE__); 364 364 return false; 365 365 } else if (unlink($file_path_name)) { … … 393 393 $old_file_path_name = $this->getParam('upload_path') . '/' . $old_name; 394 394 $new_file_path_name = $this->getParam('upload_path') . '/' . $new_name; 395 if (file_exists($old_file_path_name) ) {395 if (file_exists($old_file_path_name) && is_file($old_file_path_name)) { 396 396 if (rename($old_file_path_name, $new_file_path_name)) { 397 397 $this->_raiseMsg(sprintf(_("The file %s has been renamed to %s."), basename($old_file_path_name), basename($new_file_path_name)), MSG_NOTICE, __FILE__, __LINE__); -
trunk/lib/Utilities.inc.php
r804 r806 1684 1684 $current_url = absoluteMe(); 1685 1685 $referrer_url = getenv('HTTP_REFERER'); 1686 1687 // If either is empty, don't continue with a comparison. 1688 if ('' == $current_url || '' == $referrer_url) { 1689 return false; 1690 } 1686 1691 1687 1692 // If one of the hostnames is an IP address, compare only the path of both. -
trunk/polyfill/mysql.inc.php
r756 r806 833 833 public function mysql_real_escape_string($string, $link = false) 834 834 { 835 if ('' == $string) { 836 return ''; 837 } 838 835 839 $link = $this->_getLastLink($link); 836 840
Note: See TracChangeset
for help on using the changeset viewer.