Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-confdb
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-confdb
Commits
1c5db844
Commit
1c5db844
authored
Jun 11, 2020
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Improving security by added -limit_to xxx to all im_opt_val calls
parent
8ddf21ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
index.tcl
www/index.tcl
+1
-1
new.tcl
www/new.tcl
+2
-2
No files found.
www/index.tcl
View file @
1c5db844
...
...
@@ -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
"
}
...
...
www/new.tcl
View file @
1c5db844
...
...
@@ -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
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment