Commit 236182ad authored by Frank Bergmann's avatar Frank Bergmann

- Improved security: Removed most [ns_conn form] calls in the system.

parent b87b5e9a
......@@ -621,14 +621,10 @@ ad_proc -public im_budget_item_list_component {
# ---------------------- Defaults ----------------------------------
# Get parameters from HTTP session
# Don't trust the container page to pass-on that value...
set form_vars [ns_conn form]
if {"" == $form_vars} { set form_vars [ns_set create] }
# Get the start_idx in case of pagination
set start_idx [ns_set get $form_vars "budget_item_start_idx"]
if {"" == $start_idx || [im_security_alert_check_integer -location "im_budget_item_list_component" -value $start_idx]} { set start_idx 0 }
set start_idx [im_opt_val -limit_to integer "budget_item_start_idx"]
if {"" == $start_idx} { set start_idx 0 }
set end_idx [expr {$start_idx + $max_entries_per_page - 1}]
set bgcolor(0) " class=roweven"
......@@ -689,21 +685,12 @@ ad_proc -public im_budget_item_list_component {
if {$debug} { ns_log Notice "im_budget_item_list_component: column_headers=$column_headers" }
# -------- Compile the list of parameters to pass-through-------
set form_vars [ns_conn form]
if {"" == $form_vars} { set form_vars [ns_set create] }
set bind_vars [ns_set create]
foreach var $export_var_list {
upvar 1 $var value
if { [info exists value] } {
set value [im_opt_val -limit_to nohtml $var]
if {$value ne ""} {
ns_set put $bind_vars $var $value
if {$debug} { ns_log Notice "im_budget_item_list_component: $var <- $value" }
} else {
set value [ns_set get $form_vars $var]
if {$value ne ""} {
ns_set put $bind_vars $var $value
if {$debug} { ns_log Notice "im_budget_item_list_component: $var <- $value" }
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment