Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
34af5791
Commit
34af5791
authored
Jan 27, 2012
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 721715: URLs in the See Also field must be detainted before inserted into the DB
r=dkl a=LpSolit
parent
df170fd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Bug.pm
Bugzilla/Bug.pm
+3
-4
No files found.
Bugzilla/Bug.pm
View file @
34af5791
...
...
@@ -2822,14 +2822,13 @@ sub add_see_also {
$class
->
check_required_create_fields
(
$params
);
my
$field_values
=
$class
->
run_create_validators
(
$params
);
$uri
=
$field_values
->
{
value
};
$field_values
->
{
value
}
=
$uri
->
as_string
;
my
$value
=
$field_values
->
{
value
}
->
as_string
;
trick_taint
(
$value
);
$field_values
->
{
value
}
=
$value
;
# We only add the new URI if it hasn't been added yet. URIs are
# case-sensitive, but most of our DBs are case-insensitive, so we do
# this check case-insensitively.
my
$value
=
$uri
->
as_string
;
if
(
!
grep
{
lc
(
$_
->
name
)
eq
lc
(
$value
)
}
@
{
$self
->
see_also
})
{
my
$privs
;
my
$can
=
$self
->
check_can_change_field
(
'see_also'
,
''
,
$value
,
\
$privs
);
...
...
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