• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisionb6c072c9404bbabe448a7fa1b65d426273e9374f (tree)
Time2022-01-24 01:21:06
Authorhai-fun <haifun129@gmai...>
Commiterhai-fun

Log Message

PHP8

Change Summary

Incremental Difference

--- a/attachref.inc.php
+++ b/attachref.inc.php
@@ -2,8 +2,9 @@
22 /////////////////////////////////////////////////
33 // PukiWiki - Yet another WikiWikiWeb clone.
44 //
5-// $Id: attachref.inc.php,v 0.14 2003/10/08 04:10:29 sha Exp $
5+// $Id: attachref.inc.php,v 0.16 2021/12/11 10:07:29 sha Exp $
66 // PHP7 Split関数終了によりexplode関数に変更 : 2019/12/11
7+// PHP8 ミス等二ヶ所修正 : 2021/12/11 by はいふん
78 //
89
910 /*
@@ -177,7 +178,7 @@ function plugin_attachref_action()
177178 {
178179 return array('msg'=>'attach.inc.php not found or not correct version.');
179180 }
180- $pass = array_key_exists('pass',$vars) ? md5($vars['pass']) : NULL;
181+ $pass = array_key_exists('pass',$vars) ? $vars['pass'] : NULL;
181182 $retval = attach_upload($file,$vars['refer'],$pass);
182183 if ($retval['result'] == TRUE)
183184 {
@@ -200,8 +201,8 @@ function attachref_insert_ref($filename)
200201
201202 $ret['msg'] = $_attachref_messages['msg_title'];
202203
203- $//args = split(",", $vars['attachref_opt']);
204- $args = explode(",", $vars['attachref_opt']);
204+ //$args = split(",", $vars['attachref_opt']);
205+ $args = explode(",", $vars['attachref_opt']);
205206 if ( count($args) ){
206207 $args[0] = $filename;//array_shift,unshiftって要するにこれね
207208 $s_args = join(",", $args);
@@ -316,4 +317,4 @@ function attachref_form($page)
316317 </form>
317318 EOD;
318319 }
319-?>
\ No newline at end of file
320+?>