projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9cb1c3
)
fix local file include vulnerability in doc.php
author
Evan Prodromou
<evan@status.net>
Mon, 1 Feb 2010 16:10:36 +0000
(11:10 -0500)
committer
Evan Prodromou
<evan@status.net>
Mon, 1 Feb 2010 16:20:22 +0000
(11:20 -0500)
Conflicts:
actions/doc.php
actions/doc.php
patch
|
blob
|
history
diff --git
a/actions/doc.php
b/actions/doc.php
index 25d363472a2cca2feadf3d1292c1d226c64f8bd5..eaf4b7df2d8f0b62365b718cca266ffe572ac1f8 100644
(file)
--- a/
actions/doc.php
+++ b/
actions/doc.php
@@
-54,6
+54,9
@@
class DocAction extends Action
parent::prepare($args);
$this->title = $this->trimmed('title');
+ if (!preg_match('/^[a-zA-Z0-9_-]*$/', $this->title)) {
+ $this->title = 'help';
+ }
$this->output = null;
$this->loadDoc();