From da175d41e75b4019e46178a65bfef68b288449cf Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Mon, 9 May 2011 11:48:17 -0700 Subject: [PATCH] Fix caching for login page https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3299388&group_id=17457 --- WebminCore.pm | 2 +- password_form.cgi | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WebminCore.pm b/WebminCore.pm index 2231a2a55..8f5269462 100644 --- a/WebminCore.pm +++ b/WebminCore.pm @@ -24,7 +24,7 @@ require Exporter; # Add global variables in web-lib.pl push(@EXPORT, qw(&unique)); -push(@EXPORT, qw($config_directory $var_directory $remote_error_handler %month_to_number_map %number_to_month_map $webmin_feedback_address $default_lang $default_charset $module_index_name $module_index_link %in $in @in $progress_callback_prefix $progress_callback_url $wait_for_debug $wait_for_input @matches $theme_no_table $webmin_logfile)); +push(@EXPORT, qw($config_directory $var_directory $remote_error_handler %month_to_number_map %number_to_month_map $webmin_feedback_address $default_lang $default_charset $module_index_name $module_index_link %in $in @in $progress_callback_prefix $progress_callback_url $wait_for_debug $wait_for_input @matches $theme_no_table $webmin_logfile $pragma_no_cache)); # Functions defined in themes push(@EXPORT, qw(&theme_post_save_domain &theme_post_save_domains &theme_post_save_server &theme_select_server &theme_select_domain &theme_post_save_folder &theme_post_change_modules &theme_address_button &theme_virtualmin_ui_rating_selector &theme_virtualmin_ui_show_cron_time &theme_virtualmin_ui_parse_cron_time &theme_virtualmin_ui_html_editor_bodytags &theme_virtualmin_ui_show_html_editor)); diff --git a/password_form.cgi b/password_form.cgi index 3b9e917d2..2994c2292 100755 --- a/password_form.cgi +++ b/password_form.cgi @@ -5,6 +5,7 @@ BEGIN { push(@INC, ".."); }; use WebminCore; +$pragma_no_cache = 1; $ENV{'MINISERV_INTERNAL'} || die "Can only be called by miniserv.pl"; &init_config(); &ReadParse();