Revisão | 1176de8e9a204309f0b9f0be487a05f64363711c (tree) |
---|---|
Hora | 2017-10-25 02:08:49 |
Autor | umorigu <umorigu@gmai...> |
Commiter | umorigu |
BugTrack/2261 Cannot attach a file on freezing page
@@ -95,6 +95,9 @@ function plugin_attach_action() | ||
95 | 95 | $pass = isset($vars['pass']) ? $vars['pass'] : NULL; |
96 | 96 | $page = isset($vars['page']) ? $vars['page'] : ''; |
97 | 97 | |
98 | + if ($refer === '' && $page !== '') { | |
99 | + $refer = $page; | |
100 | + } | |
98 | 101 | if ($refer != '' && is_pagename($refer)) { |
99 | 102 | if(in_array($pcmd, array('info', 'open', 'list'))) { |
100 | 103 | check_readable($refer); |
@@ -337,7 +340,6 @@ function attach_showform() | ||
337 | 340 | $page = isset($vars['page']) ? $vars['page'] : ''; |
338 | 341 | $vars['refer'] = $page; |
339 | 342 | $body = attach_form($page); |
340 | - | |
341 | 343 | return array('msg'=>$_attach_messages['msg_upload'], 'body'=>$body); |
342 | 344 | } |
343 | 345 |