summaryrefslogtreecommitdiff
path: root/inc/actions.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-11-27 10:50:03 +0100
committerAndreas Gohr <andi@splitbrain.org>2011-11-27 10:50:03 +0100
commit560f6ea3cdac2767863c3be3a9e7933b6e37e88f (patch)
tree6f51d4b3402458e4de1a596b93ec752c8ac747b2 /inc/actions.php
parente0dd04a6493f1b7f7133f75c08f9ea55ee8bd50a (diff)
parentc66c7229a0dfc4f9f06dadda98408679fa7a18d6 (diff)
downloadrpg-560f6ea3cdac2767863c3be3a9e7933b6e37e88f.tar.gz
rpg-560f6ea3cdac2767863c3be3a9e7933b6e37e88f.tar.bz2
Merge branch 'master' into bcrypt
Diffstat (limited to 'inc/actions.php')
-rw-r--r--inc/actions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/actions.php b/inc/actions.php
index 1a0ae4028..4a2e200ae 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -101,7 +101,7 @@ function act_dispatch(){
if(checkSecurityToken()){
$ACT = act_save($ACT);
}else{
- $ACT = 'show';
+ $ACT = 'preview';
}
}
@@ -215,7 +215,7 @@ function act_clean($act){
//disable all acl related commands if ACL is disabled
if(!$conf['useacl'] && in_array($act,array('login','logout','register','admin',
'subscribe','unsubscribe','profile','revert',
- 'resendpwd','subscribens','unsubscribens',))){
+ 'resendpwd'))){
msg('Command unavailable: '.htmlspecialchars($act),-1);
return 'show';
}
@@ -227,7 +227,7 @@ function act_clean($act){
'preview','search','show','check','index','revisions',
'diff','recent','backlink','admin','subscribe','revert',
'unsubscribe','profile','resendpwd','recover',
- 'draftdel','subscribens','unsubscribens','sitemap','media')) && substr($act,0,7) != 'export_' ) {
+ 'draftdel','sitemap','media')) && substr($act,0,7) != 'export_' ) {
msg('Command unknown: '.htmlspecialchars($act),-1);
return 'show';
}