-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.0.7 add quote on value cause errors #32
Comments
solution: add quote only for value which contain // ..
if(preg_match('/\s/',$value) > 0){
$value='"'.$value.'"';
}
//.. |
Hey, |
Code thanks to vafrcor
2.0.7 add quote on value cause errors #32
if (preg_match('/\s/', $value) > 0 && (strpos($value, '"') > 0 && strpos($value, '"', -0) > 0)) {
$value = '"' . $value . '"';
}
am I mis-understanding on solution above? |
If I didn't mis-understanding, a string contain empty space should be wrapped by double quote, but the truth is, when I save a value contain empty space into .env, bug below occurs because it didn't be wrapped by double quote... Bug may occurs if empty space in .env
|
@lostncg having the same issues... |
adding quote while update value cause an error (ENV couldn't be readed) due to many quotes.
Tested on
Laravel 5.4
onMac OS X
The text was updated successfully, but these errors were encountered: