PR #1093 added a check for a null security token value before adding it to the options, but in the env function of the CredentialProvider, getenv(self::ENV_SESSION) is used for a session token, which returns false if it doesn't exist in the environment. This causes a false value for the security token to be added to the policy generated for S3 uploads which is not a valid value.
PR #1093 added a check for a null security token value before adding it to the options, but in the
envfunction of the CredentialProvider,getenv(self::ENV_SESSION)is used for a session token, which returnsfalseif it doesn't exist in the environment. This causes afalsevalue for the security token to be added to the policy generated for S3 uploads which is not a valid value.