Skip to content

Commit

Permalink
fix: corrected the use of some unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Jul 31, 2024
1 parent b495543 commit 1183e27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server-data/resources/[esx_addons]/esx_garage/nui/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ $(window).ready(function() {
// return text.replace("No vehicle impounded.", data.locales.no_veh_impounded);
// });

$('.vehicle-listing').html(function(i, text) {
$('.vehicle-listing').html(function(_i, text) {
return text.replace('Model', data.locales.veh_model);
});

Check failure

Code scanning / CodeQL

Client-side cross-site scripting High

Cross-site scripting vulnerability due to
user-provided value
.
$('.vehicle-listing').html(function(i, text) {
$('.vehicle-listing').html(function(_i, text) {
return text.replace('Plate', data.locales.veh_plate);
});

Check failure

Code scanning / CodeQL

Client-side cross-site scripting High

Cross-site scripting vulnerability due to
user-provided value
.
$('.vehicle-listing').html(function(i, text) {
$('.vehicle-listing').html(function(_i, text) {
return text.replace('Condition', data.locales.veh_condition);
});

Check failure

Code scanning / CodeQL

Client-side cross-site scripting High

Cross-site scripting vulnerability due to
user-provided value
.
}
Expand Down

0 comments on commit 1183e27

Please sign in to comment.