Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
4ef86096
Commit
4ef86096
authored
Oct 21, 2014
by
Robert Lyon
Committed by
Gerrit Code Review
Oct 21, 2014
Browse files
Merge "XSS in page content editor (Bug #1375092)"
parents
095e9e22
01afaad8
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/js/views.js
View file @
4ef86096
...
...
@@ -521,7 +521,7 @@
var
element
=
$
(
'
#column-container > .row
'
).
eq
(
parseInt
(
position
[
0
])
-
1
).
find
(
'
.column
'
).
eq
(
parseInt
(
position
[
1
])
-
1
);
var
options
=
[
get_string
(
'
blockordertop
'
)];
element
.
find
(
'
.column-content .blockinstance .blockinstance-header
'
).
each
(
function
()
{
options
.
push
(
get_string
(
'
blockorderafter
'
,
$
(
this
).
find
(
'
h2.title
'
).
text
()));
options
.
push
(
get_string
(
'
blockorderafter
'
,
$
(
this
).
find
(
'
h2.title
'
).
html
()));
});
var
selectbox
=
$
(
'
#addblock_position
'
);
selectbox
.
html
(
'
<option>
'
+
options
.
join
(
'
</option><option>
'
)
+
'
</option>
'
);
...
...
Write
Preview
Supports
Markdown
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