[wp-trac] [WordPress Trac] #13839: Configuration script does not allow apostrophes, blank prefixes

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 29 14:12:22 UTC 2011


#13839: Configuration script does not allow apostrophes, blank prefixes
----------------------------+-----------------------------
 Reporter:  incaren         |       Owner:  dd32
     Type:  defect (bug)    |      Status:  assigned
 Priority:  low             |   Milestone:  Future Release
Component:  Administration  |     Version:  2.9.2
 Severity:  trivial         |  Resolution:
 Keywords:  has-patch       |
----------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:7 dd32]:
 > Attached is a patch for testing based on addcslashes and erroring out on
 an empty prefix

 [attachment:13839.2.diff] still doesn't allow apostrophes in a password,
 resulting in "Error establishing a database connection".

 In [attachment:13839.3.diff] I've added `stripslashes()` before trying to
 connect to a database, and it seems to works properly with the example
 password of `1'2\3"4`.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13839#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list