mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-05-20 06:26:40 +02:00
Compare commits
3 commits
fc052b1882
...
da6d537f59
Author | SHA1 | Date | |
---|---|---|---|
da6d537f59 | |||
a1ae0fa729 | |||
fad07daa40 |
|
@ -880,7 +880,7 @@ if (isset($_POST['rename_from'], $_POST['rename_to'], $_POST['token']) && !FM_RE
|
|||
// rename
|
||||
if (fm_isvalid_filename($new) && $old != '' && $new != '') {
|
||||
if (fm_rename($path . '/' . $old, $path . '/' . $new)) {
|
||||
fm_set_msg(sprintf(lng('Renamed from').' <b>%s</b> '. lng('to').' <b>%s</b>', fm_enc($old), fm_enc($new)));
|
||||
fm_set_msg(sprintf(lng('Renamed from').' <b>%s</b> '. lng('to').' <b><a href="%s">%s</a></b>',fm_enc($old),'?p=' . urlencode(FM_PATH) . '&view=' . urlencode($new), fm_enc($new) ));
|
||||
} else {
|
||||
fm_set_msg(sprintf(lng('Error while renaming from').' <b>%s</b> '. lng('to').' <b>%s</b>', fm_enc($old), fm_enc($new)), 'error');
|
||||
}
|
||||
|
@ -958,7 +958,7 @@ if (!empty($_FILES) && !FM_READONLY) {
|
|||
|
||||
$targetPath = $path . $ds;
|
||||
if ( is_writable($targetPath) ) {
|
||||
$fullPath = $path . '/' . basename($fullPathInput);
|
||||
$fullPath = $path . '/' . $fullPathInput;
|
||||
$folder = substr($fullPath, 0, strrpos($fullPath, "/"));
|
||||
|
||||
if (!is_dir($folder)) {
|
||||
|
|
Loading…
Reference in a new issue