CGI args parser
authorJamie Cameron <jcameron@webmin.com>
Wed, 10 Jun 2009 18:37:06 +0000 (18:37 +0000)
committerJamie Cameron <jcameron@webmin.com>
Wed, 10 Jun 2009 18:37:06 +0000 (18:37 +0000)
dovecot/cgi_args.pl [new file with mode: 0644]
dovecot/edit_manual.cgi

diff --git a/dovecot/cgi_args.pl b/dovecot/cgi_args.pl
new file mode 100644 (file)
index 0000000..252d9dc
--- /dev/null
@@ -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;
+}
index d137520..19f03f4 100755 (executable)
@@ -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