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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mikolaï Krol
erp5
Commits
3b97bcb7
Commit
3b97bcb7
authored
Jun 09, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dms: also check web page implicit references with <script>
parent
4e805af3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
bt5/erp5_dms/TestTemplateItem/portal_components/test.erp5.testERP5WebWithDms.py
...ateItem/portal_components/test.erp5.testERP5WebWithDms.py
+2
-1
No files found.
bt5/erp5_dms/TestTemplateItem/portal_components/test.erp5.testERP5WebWithDms.py
View file @
3b97bcb7
...
@@ -1608,7 +1608,7 @@ return True
...
@@ -1608,7 +1608,7 @@ return True
web_page_module
=
self
.
portal
.
getDefaultModule
(
portal_type
=
"Web Page"
)
web_page_module
=
self
.
portal
.
getDefaultModule
(
portal_type
=
"Web Page"
)
image_module
=
self
.
portal
.
getDefaultModule
(
portal_type
=
"Image"
)
image_module
=
self
.
portal
.
getDefaultModule
(
portal_type
=
"Image"
)
img_list
=
[]
img_list
=
[]
for
i
in
range
(
1
3
):
for
i
in
range
(
1
4
):
img
=
image_module
.
newContent
(
img
=
image_module
.
newContent
(
data
=
XSMALL_SVG_IMAGE_ICON_DATA
,
data
=
XSMALL_SVG_IMAGE_ICON_DATA
,
reference
=
"P-IMG-implicit.successor.value.list.test.%d"
%
i
,
reference
=
"P-IMG-implicit.successor.value.list.test.%d"
%
i
,
...
@@ -1638,6 +1638,7 @@ return True
...
@@ -1638,6 +1638,7 @@ return True
'<img src="P-IMG-implicit.successor.value.list.test.10?format=" />'
,
'<img src="P-IMG-implicit.successor.value.list.test.10?format=" />'
,
'<iframe src="/%s" />'
%
img_list
[
11
].
getRelativeUrl
(),
'<iframe src="/%s" />'
%
img_list
[
11
].
getRelativeUrl
(),
'<style>body { background-image: url("P-IMG-implicit.successor.value.list.test.12?format=png"); }</style>'
,
'<style>body { background-image: url("P-IMG-implicit.successor.value.list.test.12?format=png"); }</style>'
,
'<script src="P-IMG-implicit.successor.value.list.test.13" type="text/javascript"></script>'
,
]),
]),
)
)
page
.
publish
()
page
.
publish
()
...
...
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