OSDN Git Service
(root)
/
pukiwiki
/
pukiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c30f54
)
Make sure page name is valid for tracker plugin action
author
umorigu
<umorigu@gmail.com>
Sat, 6 Feb 2016 16:33:03 +0000
(
01:33
+0900)
committer
umorigu
<umorigu@gmail.com>
Sat, 6 Feb 2016 16:33:03 +0000
(
01:33
+0900)
plugin/tracker.inc.php
patch
|
blob
|
history
diff --git
a/plugin/tracker.inc.php
b/plugin/tracker.inc.php
index
06af55b
..
3ffc324
100644
(file)
--- a/
plugin/tracker.inc.php
+++ b/
plugin/tracker.inc.php
@@
-114,6
+114,13
@@
function plugin_tracker_action()
}
// ページ名を決定
$base = $post['_base'];
+ if (!is_pagename($base))
+ {
+ return array(
+ 'msg'=>'cannot write',
+ 'body'=>'page name ('.htmlsc($base).') is not valid.'
+ );
+ }
$num = 0;
$name = (array_key_exists('_name',$post)) ? $post['_name'] : '';
if (array_key_exists('_page',$post))