[dokuwiki] ACTION_ACT_PREPROCESS and act_clean

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 20 Oct 2006 16:22:49 +0200

Hi Chris and others!

I'm just working on another action plugin and encountered a problem
with the ACTION_ACT_PREPROCESS hook.

It does get the $ACT variable uncleaned, this is fine for handling new
actions, but it is somewhat bad for checking for default actions. Eg.
the save action is the localized Save button label. The sanitizing is
only done later in act_clean.

Do you have any ideas how to make this a little bit simpler for plugin
authors? Eg. precleaning without aborting on unknown actions could work.

Andi

-- 
http://www.splitbrain.org

Other related posts: