Alterations in Drupal

From WolfTech
Jump to navigation Jump to search

All edits are made to core Drupal files. Files with extension type .inc are generally found in the includes folder of the site.

image.inc

(line 117)

change:

if (!is_file($file)) {

to:

if (!is_uploaded_file($file) && !is_file($file)) {

file.inc

(line 572)

change:

if (!move_uploaded_file($_FILES['files']['tmp_name'][$source], $file->filepath)) {

to:

if (!@move_uploaded_file($_FILES['files']['tmp_name'][$source], $file->filepath)) {