summaryrefslogtreecommitdiff
path: root/inc/actions.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/actions.php')
-rw-r--r--inc/actions.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/inc/actions.php b/inc/actions.php
index b37106ec5..4143416bb 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -150,7 +150,7 @@ function act_clean($act){
//remove all bad chars
$act = strtolower($act);
- $act = preg_replace('/[^a-z_]+/','',$act);
+ $act = preg_replace('/[^1-9a-z_]+/','',$act);
if($act == 'export_html') $act = 'export_xhtml';
if($act == 'export_htmlbody') $act = 'export_xhtmlbody';
@@ -393,14 +393,12 @@ function act_export($act){
// try to run renderer #FIXME use cached instructions
$mode = substr($act,7);
- $text = p_render($mode,p_get_instructions(rawWiki($ID,$REV)),$info);
+ $text = p_cached_output(wikiFN($ID,$REV), $mode);
if(!is_null($text)){
print $text;
exit;
}
-
-
return 'show';
}