diff options
author | Brion Vibber <brion@pobox.com> | 2010-02-01 08:49:19 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-02-01 08:49:19 -0800 |
commit | d9e7d4c4ad4d019fd582494cecc005a27cbd8a82 (patch) | |
tree | 07e74c855eb81f1dadd5387d5996b364317be15e /actions | |
parent | 84ab0156b415a405704784dfc19b59ebd3a1d1ee (diff) | |
parent | d264db61199789bd6b2e42161048da69ce95f45a (diff) |
Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'actions')
-rw-r--r-- | actions/doc.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actions/doc.php b/actions/doc.php index 25d363472..eaf4b7df2 100644 --- 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(); |