camicroscope / Caracal

Conslidated Backend, Auth, and Security Services for caMicroscope
GNU General Public License v3.0
15 stars 94 forks source link

Corrected parsing of Boolean Environment Variables [FIX] #29

Closed Vedant1202 closed 4 years ago

Vedant1202 commented 4 years ago

Description

Boolean environment variables we're being parsed as strings and thus they we're always considered as true by javascript irrespective of their actual value. Now the strings are being compared with an expression and thus the resultant boolean is passed to the variable.

Fix based on this article.

Motivation and Context

This solves the issue of incorrect parsing of booleans for environment variables.

How Has This Been Tested?

Types of changes

Checklist: