OSDN Git Service
(root)
/
pukiwiki
/
pukiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BugTrack/2260 Use get_base_uri() instead of $script
[pukiwiki/pukiwiki.git]
/
plugin
/
attach.inc.php
diff --git
a/plugin/attach.inc.php
b/plugin/attach.inc.php
index
84012e3
..
6dd1060
100644
(file)
--- a/
plugin/attach.inc.php
+++ b/
plugin/attach.inc.php
@@
-378,8
+378,9
@@
function attach_mime_content_type($filename, $displayname)
// アップロードフォームの出力
function attach_form($page)
{
// アップロードフォームの出力
function attach_form($page)
{
- global $
script, $
vars, $_attach_messages;
+ global $vars, $_attach_messages;
+ $script = get_base_uri();
$r_page = rawurlencode($page);
$s_page = htmlsc($page);
$navi = <<<EOD
$r_page = rawurlencode($page);
$s_page = htmlsc($page);
$navi = <<<EOD
@@
-494,8
+495,9
@@
class AttachFile
function toString($showicon, $showinfo)
{
function toString($showicon, $showinfo)
{
- global $
script, $
_attach_messages;
+ global $_attach_messages;
+ $script = get_base_uri();
$this->getstatus();
$param = '&file=' . rawurlencode($this->file) . '&refer=' . rawurlencode($this->page) .
($this->age ? '&age=' . $this->age : '');
$this->getstatus();
$param = '&file=' . rawurlencode($this->file) . '&refer=' . rawurlencode($this->page) .
($this->age ? '&age=' . $this->age : '');
@@
-517,8
+519,9
@@
class AttachFile
// 情報表示
function info($err)
{
// 情報表示
function info($err)
{
- global $
script, $
_attach_messages;
+ global $_attach_messages;
+ $script = get_base_uri();
$r_page = rawurlencode($this->page);
$s_page = htmlsc($this->page);
$s_file = htmlsc($this->file);
$r_page = rawurlencode($this->page);
$s_page = htmlsc($this->page);
$s_file = htmlsc($this->file);