PMCORE-646 Special characters in oracle connection passwords causes bad behavior
This commit is contained in:
6
thirdparty/creole/Creole.php
vendored
6
thirdparty/creole/Creole.php
vendored
@@ -28,6 +28,8 @@ include_once 'creole/Connection.php';
|
||||
|
||||
@ini_set('track_errors', true);
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
/**
|
||||
* This is the class that manages the database drivers.
|
||||
*
|
||||
@@ -309,6 +311,10 @@ class Creole {
|
||||
);
|
||||
|
||||
$info = parse_url($dsn);
|
||||
if ($info === false) {
|
||||
$info = System::parseUrlWithNotEncodedPassword($dsn);
|
||||
}
|
||||
|
||||
$info['pass'] = urldecode($info['pass']);
|
||||
if (count($info) === 1) { // if there's only one element in result, then it must be the phptype
|
||||
$parsed['phptype'] = array_pop($info);
|
||||
|
||||
Reference in New Issue
Block a user