Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
4c0152af
Commit
4c0152af
authored
Apr 05, 2022
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restricted: allow bz2 (except BZ2File) & zlib
parent
079b8a74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
product/ERP5Type/patches/Restricted.py
product/ERP5Type/patches/Restricted.py
+4
-0
No files found.
product/ERP5Type/patches/Restricted.py
View file @
4c0152af
...
...
@@ -312,7 +312,11 @@ import urlparse
allow_type
(
urlparse
.
ParseResult
)
allow_type
(
urlparse
.
SplitResult
)
allow_module
(
'struct'
)
allow_module
(
'zlib'
)
ModuleSecurityInfo
(
'bz2'
).
declarePublic
(
'compress'
,
'decompress'
,
'BZ2Compressor'
,
'BZ2Decompressor'
,
)
ModuleSecurityInfo
(
'os.path'
).
declarePublic
(
# Allow functions accessing neither file system nor environment.
'abspath'
,
'basename'
,
'commonprefix'
,
'dirname'
,
'isabs'
,
'join'
,
...
...
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