Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicodim99 committed Aug 31, 2017
1 parent 2840d8d commit d25279e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cms/include/action_files.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ function check_file($file, $readonly = false)

} else {

if (!isset($_REQUEST['path'])) {
$_REQUEST['path'] = USER_UPLOAD_PATH . date('Ymd') . '/';
}

$path = trim($_REQUEST['path'], '/') . '/';

if (!file_exists(DOCROOT . $path)) mkdir(DOCROOT . $path, 0777);
Expand Down
1 change: 0 additions & 1 deletion cms/include/action_material_save.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

$handler = $application->getConn()->fetchColumn("SELECT handler FROM types WHERE alias = ?", array($math), 0);

$r = fssql_query("SELECT handler FROM types WHERE alias = '$math'");
if ($handler) {
if (substr($handler, -4) != '.php') $handler .= '.php';
if ($handler && file_exists(PLUGIN_MATH_DIR.'/'.$handler))
Expand Down

0 comments on commit d25279e

Please sign in to comment.