From e9cb86718e66a065b68dfebe4f5eaa19f940d92c Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Wed, 10 Jun 2009 18:37:06 +0000 Subject: [PATCH] CGI args parser --- dovecot/cgi_args.pl | 12 ++++++++++++ dovecot/edit_manual.cgi | 1 - 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 dovecot/cgi_args.pl diff --git a/dovecot/cgi_args.pl b/dovecot/cgi_args.pl new file mode 100644 index 000000000..252d9dc98 --- /dev/null +++ b/dovecot/cgi_args.pl @@ -0,0 +1,12 @@ + +do 'dovecot-lib.pl'; + +sub cgi_args +{ +my ($cgi) = @_; +if ($cgi =~ /^edit_/) { + # All edit_*.cgi files can be linked to + return ''; + } +return undef; +} diff --git a/dovecot/edit_manual.cgi b/dovecot/edit_manual.cgi index d137520c3..19f03f4a7 100755 --- a/dovecot/edit_manual.cgi +++ b/dovecot/edit_manual.cgi @@ -2,7 +2,6 @@ # Show a page for manually editing dovecot.conf require './dovecot-lib.pl'; -&ReadParse(); &ui_print_header(undef, $text{'manual_title'}, ""); # Show the file contents