OSDN Git Service

Upside down REMOTE_ADDR <=> USER_AGENT
authorhenoheno <henoheno>
Sat, 25 Jun 2005 14:18:01 +0000 (23:18 +0900)
committerhenoheno <henoheno>
Sat, 25 Jun 2005 14:18:01 +0000 (23:18 +0900)
lib/file.php

index 146131f..1f65add 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: file.php,v 1.26 2005/06/07 14:37:46 henoheno Exp $
+// $Id: file.php,v 1.27 2005/06/25 14:18:01 henoheno Exp $
 // Copyright (C)
 //   2002-2005 PukiWiki Developers Team
 //   2001-2002 Originally written by yu-ji
@@ -144,10 +144,10 @@ function file_write($dir, $page, $str, $notimestamp = FALSE)
                if ($notify_diff_only) $str = preg_replace('/^[^-+].*\n/m', '', $str);
 
                $footer['ACTION'] = 'Page update';
-               $footer['PAGE'] = $page;
-               $footer['URI']  = get_script_uri() . '?' . rawurlencode($page);
-               $footer['REMOTE_ADDR'] = TRUE;
+               $footer['PAGE']   = & $page;
+               $footer['URI']    = get_script_uri() . '?' . rawurlencode($page);
                $footer['USER_AGENT']  = TRUE;
+               $footer['REMOTE_ADDR'] = TRUE;
 
                pkwk_mail_notify($notify_subject, $str, $footer) or
                        die('pkwk_mail_notify(): Failed');