-
Notifications
You must be signed in to change notification settings - Fork 30
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
CIVI_DB_ARGS, etc is empty but CIVI_DB_DSN has string #107
Comments
@totten I only got around to investigating now. In cv/lib/src/SiteConfigReader.php Line 169 in c161ddc
parse_url() . But it can't handle some characters in the password that are otherwise fine when set in civicrm.settings.php . In our case, we've just changed the passwords to exclude characters like: # (they already exclude @ , : and some others.
|
@herbdool Oh, wow. I see. So there are slight differences between I guess the objective should be RFC compliance for both. RFC 1738: section 2.2 calls out I wanted to understand their behavior better. Quick comparison script: // Run with "cv scr this-file.php"
$exs = [
'mysql://user:pass%[email protected]/foo',
'mysql://user:pass#[email protected]/foo',
];
foreach ($exs as $ex) {
print_r([
'raw' => $ex,
'parse_url' => parse_url($ex),
'DB::parseDSN' => DB::parseDSN($ex),
]);
} Which gives results:
IMHO, it's probably fair for Is it safe to fix the bug?... I'm not certain. Probably? |
Are you talking about a bug in In |
This is happening in version
v0.3.10
and from the most recent build (I downloaded the repo and ran./build.sh
and foundcv.phar
created in./bin
- which is undocumented by the way) :This was working not too long ago.
The text was updated successfully, but these errors were encountered: