简体   繁体   中英

Which unsupported characters exist for the dotenv file?

I'm trying to store a Facebook API Access-Token in Fortrabbit's environment variables. (.env and app secret)

But I get the message:

Unsupported characters or malformed nested ENV vars.

I think the problem might be, that my token contains a | character.

  • Is there a list of unsupported characters?
  • Is there a way to escape this character?

Thanks

Is there a list of unsupported characters?

Here is the regex for the validation:

/^[\\p{L}\\p{N}\\ _\\-\\+=\\.,:;\\?!@~%&\\*\\(\\)\\[\\]\\{\\}<>\\/\\\\#]+$/u

Is there a way to escape this character?

We recommend to base64 encode the value and decode it before usage.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM