OSDN Git Service

BugTrack/2213 Set Absolute URI or Root relative path
[pukiwiki/pukiwiki.git] / plugin / attach.inc.php
index d0ccb43..8bf5f6d 100644 (file)
@@ -207,7 +207,7 @@ function attach_upload($file, $page, $pass = NULL)
                $footer['FILESIZE'] = & $file['size'];
                $footer['PAGE']     = & $page;
 
-               $footer['URI']      = get_script_uri() .
+               $footer['URI']      = get_script_uri(PKWK_URI_ABSOLUTE) .
                        //'?' . pagename_urlencode($page);
 
                        // MD5 may heavy
@@ -644,7 +644,7 @@ EOD;
                        $footer['ACTION']   = 'File deleted';
                        $footer['FILENAME'] = & $this->file;
                        $footer['PAGE']     = & $this->page;
-                       $footer['URI']      = get_script_uri() .
+                       $footer['URI']      = get_script_uri(PKWK_URI_ABSOLUTE) .
                                '?' . pagename_urlencode($this->page);
                        $footer['USER_AGENT']  = TRUE;
                        $footer['REMOTE_ADDR'] = TRUE;