Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ecommerce-ui
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ecommerce-ui
Commits
3fd2cbad
Commit
3fd2cbad
authored
Apr 12, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jslint: insecure
parent
e4d1f20f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
js/erp5_loader.js
js/erp5_loader.js
+3
-2
No files found.
js/erp5_loader.js
View file @
3fd2cbad
...
...
@@ -4483,7 +4483,7 @@
app
.
util
.
loader
(
""
,
"
status_dict.forwarding
"
);
answer
=
util
.
parse
(
response
);
id
=
answer
.
id
;
decode
=
/
^
[^\/]
*%2
[^\/]
*$/
.
test
(
id
);
decode
=
/
%
[
0-9a-f
]{2}
/i
.
.
test
(
id
);
goto_page
=
decode
?
id
:
window
.
encodeURIComponent
(
id
);
$
.
mobile
.
changePage
(
obj
.
state
.
callback
.
replace
(
"
__id__
"
,
goto_page
));
...
...
@@ -6422,7 +6422,8 @@
hash
=
$
.
mobile
.
path
.
parseUrl
(
url
.
replace
(
$
.
mobile
.
dialogHashKey
,
""
)
).
hash
.
replace
(
"
#
"
,
""
);
decode
=
/^
[^\/]
*%2
[^\/]
*$/
.
test
(
hash
);
// decode = /^[^\/]*%2[^\/]*$/.test(hash);
decode
=
/%
[
0-9a-f
]{2}
/i
.
test
(
hash
);
backup
=
0
;
// decode (allowing URI encoded identifiers)
...
...
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