Skip to content

Commit

Permalink
Update dvwaPage.inc.php
Browse files Browse the repository at this point in the history
Set a default locale for users who haven't updated their config files.
  • Loading branch information
digininja authored Aug 11, 2021
1 parent 1ef2eb0 commit b3e2303
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dvwa/includes/dvwaPage.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
dvwaPhpIdsEnabledSet( false );
}

if (!array_key_exists ("default_locale", $_DVWA)) {
$_DVWA[ 'default_locale' ] = "en";
}

dvwaLocaleSet( $_DVWA[ 'default_locale' ] );

// DVWA version
Expand Down

0 comments on commit b3e2303

Please sign in to comment.