1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-07 18:54:23 +01:00

Check for ^oci: instead of just ^oci.

This commit is contained in:
Fredrik Thulin 2012-06-14 11:05:44 +02:00
parent 04ce8662de
commit e5ea2ead5f

View File

@ -27,7 +27,7 @@ class DbImpl extends Db
$this->db_password=$db_password;
$this->db_options=$db_options;
if(substr($db_dsn, 0, 3) == 'oci') {
if(substr($db_dsn, 0, 4) == 'oci:') {
# "oci:" prefix needs to be removed before passing db_dsn to OCI
$this->db_dsn = substr($this->db_dsn, 4);
}