Skip to content

Commit

Permalink
fix(webapp): hardened url matcher for authorized engine
Browse files Browse the repository at this point in the history
  • Loading branch information
meyerdan committed Jul 22, 2014
1 parent cc1befb commit 48fd85d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/engineRequestHeaderProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ngDefine('camunda.common.services', function(module) {
var window = $windowProvider.$get();
var uri = window.location.href;

var match = uri.match(/app\/(\w+)\/(\w+)\//);
var match = uri.match(/\/app\/(\w+)\/(\w+)\//);
if (match) {
$httpProvider.defaults.headers.get = {'X-Authorized-Engine' : match[2] };
} else {
Expand Down

0 comments on commit 48fd85d

Please sign in to comment.