Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
HAWKULAR-273 Prevent Git Injection Attack from special git comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtho11 committed May 27, 2015
1 parent 642d164 commit 456a3b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/console/src/main/scripts/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ gulp.task('git-sha', function(cb) {
var versionFile = 'version.js';

if(!jsString) {
plugins.git.exec({args: 'log -n 1 --oneline'}, function (err, stdout) {
plugins.git.exec({args: "log -n 1 --pretty='%h'"}, function (err, stdout) {
if (err) throw err;
var gitSha = stdout.slice(0, -1);
jsString = 'var HawkularVersion = \'' + gitSha + '\';';
Expand Down

0 comments on commit 456a3b2

Please sign in to comment.