[wp-trac] [WordPress Trac] #43167: Unable to install worpress, error on wp-admin/setup-config.php
WordPress Trac
noreply at wordpress.org
Tue Mar 13 02:27:50 UTC 2018
#43167: Unable to install worpress, error on wp-admin/setup-config.php
--------------------------+------------------------------
Reporter: irecinius | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by dd32):
I feel like there's another ticket for this, however, I'm wondering if the
following will both work with the intended purpose of this code and work
with modern MySQL/PHP:
`$wpdb->query( $wpdb->prepare( "SELECT %s AS $prefix", $prefix ) )`
This check is to validate that the database prefix chosen is viable on the
MySQL variant unquoted, ie. "Can I query for '{$prefix}posts' or would I
need to escape characters in the $prefix for it to work".
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43167#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list