Skip to content

Commit

Permalink
Merge pull request #4782 from laboro/bug/CRM-3609_1.6
Browse files Browse the repository at this point in the history
CRM-3609: Open Redirect Security Issue.
  • Loading branch information
hurricane-voronin committed Jul 7, 2015
2 parents 07c1dbb + ad50f19 commit e944817
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Oro/Bundle/UserBundle/Resources/public/js/init-signin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/* jshint browser:true */
/* global require */
/**
* @deprecated since 1.8 because of vulnerability for "phishing" attack
*/
require(['jquery'],
function($) {
'use strict';
Expand All @@ -21,4 +24,4 @@ function($) {
$('input[name="_target_path"]').val(hashUrl);
}
});
});
});
2 changes: 1 addition & 1 deletion src/Oro/Bundle/UserBundle/Resources/views/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

{% include 'OroRequireJSBundle::scripts.html.twig' with {compressed: not app.debug} %}
<script type="text/javascript">
require(['jquery', 'oroui/js/init-layout', 'orouser/js/init-signin'],
require(['jquery', 'oroui/js/init-layout'],
function($) {
$(function() {
// emulates 'document ready state' for selenium tests
Expand Down

0 comments on commit e944817

Please sign in to comment.