Changeset 4da69b9 in github


Ignore:
Timestamp:
Mar 6, 2012 8:38:33 AM (15 months ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
Children:
8b3c68d
Parents:
0203f16
Message:
  • Have DSN parser pass database name through url decode (#1488035)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/lib/MDB2.php

    r7244b45 r4da69b9  
    889889            // /database 
    890890            if (($pos = strpos($dsn, '?')) === false) { 
    891                 $parsed['database'] = $dsn; 
     891                $parsed['database'] = rawurldecode($dsn); 
    892892            // /database?param1=value1&param2=value2 
    893893            } else { 
    894                 $parsed['database'] = substr($dsn, 0, $pos); 
     894                $parsed['database'] = rawurldecode(substr($dsn, 0, $pos)); 
    895895                $dsn = substr($dsn, $pos + 1); 
    896896                if (strpos($dsn, '&') !== false) { 
Note: See TracChangeset for help on using the changeset viewer.