Commit 1c5db844 authored by Frank Bergmann's avatar Frank Bergmann

- Improving security by added -limit_to xxx to all im_opt_val calls

parent 8ddf21ae
......@@ -186,7 +186,7 @@ db_foreach column_list_sql $column_sql {
UNION select 'end_date'
"
db_foreach pass_through_vars $dynfield_sql {
set value [im_opt_val $attribute_name]
set value [im_opt_val -limit_to nohtml $attribute_name]
if {"" != $value} {
append col_url "&$attribute_name=$value"
}
......
......@@ -34,7 +34,7 @@ set focus ""
set sub_navbar ""
# org_conf_item_id required by Portlet Components!
set org_conf_item_id [im_opt_val conf_item_id]
set org_conf_item_id [im_opt_val -limit_to integer conf_item_id]
set page_title [lang::message::lookup "" intranet-confdb.New_Conf_Item "New Configuration Item"]
set show_components_p 0
......@@ -286,7 +286,7 @@ set conf_item_sql [im_conf_item_select_sql \
-owner_id "" \
-cost_center_id "" \
-treelevel "" \
-parent_id [im_opt_val conf_item_id] \
-parent_id [im_opt_val -limit_to integer conf_item_id] \
]
set sql "
......
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