Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
4cea676d
Commit
4cea676d
authored
Oct 04, 2011
by
Holger Just
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release-v1.5.3' into stable-1.x
parents
3f518259
c06cba31
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
7 deletions
+34
-7
CHANGELOG.rdoc
doc/CHANGELOG.rdoc
+6
-2
Redmine.pm
extra/svn/Redmine.pm
+24
-1
version.rb
lib/redmine/version.rb
+4
-4
No files found.
doc/CHANGELOG.rdoc
View file @
4cea676d
= ChiliProject changelog
== 2011-10-04 v1.5.3
* Bug #619: Redmine.pm allows anonymous read access to repositories even if Anonymous role prohibits it
== 2011-08-01 v1.5.2
* Bug #547: Multiple XSS vulnerabilities
...
...
extra/svn/Redmine.pm
View file @
4cea676d
...
...
@@ -318,7 +318,7 @@ sub access_handler {
my
$project_id
=
get_project_identifier
(
$r
);
$r
->
set_handlers
(
PerlAuthenHandler
=>
[
\&
OK
])
if
is_public_project
(
$project_id
,
$r
);
if
is_public_project
(
$project_id
,
$r
)
&&
anonymous_role_allows_browse_repository
(
$r
)
;
return
OK
}
...
...
@@ -390,6 +390,29 @@ sub is_public_project {
$ret
;
}
sub
anonymous_role_allows_browse_repository
{
my
$r
=
shift
;
my
$dbh
=
connect_database
(
$r
);
my
$sth
=
$dbh
->
prepare
(
"SELECT permissions FROM roles WHERE builtin = 2;"
);
$sth
->
execute
();
my
$ret
=
0
;
if
(
my
@row
=
$sth
->
fetchrow_array
)
{
if
(
$row
[
0
]
=~
/:browse_repository/
)
{
$ret
=
1
;
}
}
$sth
->
finish
();
undef
$sth
;
$dbh
->
disconnect
();
undef
$dbh
;
$ret
;
}
# perhaps we should use repository right (other read right) to check public access.
# it could be faster BUT it doesn't work for the moment.
# sub is_public_project_by_file {
...
...
lib/redmine/version.rb
View file @
4cea676d
...
...
@@ -4,7 +4,7 @@ module Redmine
module
VERSION
#:nodoc:
MAJOR
=
1
MINOR
=
5
PATCH
=
2
PATCH
=
3
TINY
=
PATCH
# Redmine compat
def
self
.
revision
...
...
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