Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
9a7d9da6
Commit
9a7d9da6
authored
Apr 29, 2020
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'js_caliblur/xss'
parents
e9446556
806a5f20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
caliBlur.js
cps/static/js/caliBlur.js
+2
-2
No files found.
cps/static/js/caliBlur.js
View file @
9a7d9da6
...
...
@@ -28,7 +28,7 @@ $( 'body.mailset' ).addClass( 'admin' );
curHref
=
window
.
location
.
href
.
split
(
'/'
);
prevHref
=
document
.
referrer
.
split
(
'/'
);
$
(
'.navbar-form.navbar-left'
)
.
before
(
'<div class="plexBack"><a href="'
+
document
.
referrer
+
'"></a></div>'
);
.
before
(
'<div class="plexBack"><a href="'
+
encodeURI
(
document
.
referrer
)
+
'"></a></div>'
);
if
(
history
.
length
===
1
||
curHref
[
0
]
+
curHref
[
1
]
+
...
...
@@ -43,7 +43,7 @@ if ( history.length === 1 ||
//Weird missing a after pressing back from edit.
setTimeout
(
function
()
{
if
(
$
(
'.plexBack a'
).
length
<
1
)
{
$
(
'.plexBack'
).
append
(
'<a href="'
+
document
.
referrer
+
'"></a>'
);
$
(
'.plexBack'
).
append
(
'<a href="'
+
encodeURI
(
document
.
referrer
)
+
'"></a>'
);
}
},
10
);
...
...
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