Phpwind latest SQL Injection controllable Program

Source: Internet
Author: User

Class WindMysqlPdoAdapter extends AbstractWindPdoAdapter {/* (non-PHPdoc) * @ see AbstractWindPdoAdapter: setCharset () */public function setCharset ($ charset) {$ charset & $ this-> query ("set names ". $ this-> quote ($ charset ). ";");}/** create a data table ** to add a data table. Three parameters are supported: 'Data indication, field definition, and whether to overwrite the existing Table '. for example, '$ values' throws an exception when the data table name is undefined, The 'fields' field is undefined, or the data table name is null: * $ values = array (* 'fields' => "'id' smallint (5) unsigned not null auto_increment, * 'name' varchar (30) not null default '', primary key ('id') ", * 'charset' =>" UTF-8 ", * 'autosecret' => 'id', * 'engine' => 'innerdb '); * <note> <B> note: </B> the last parameter '$ replace' has two values: true and false ', if the value is false, it indicates that no new table is created if the data table exists, * If the value is true, delete an existing data table and create a new table <te> ** @ param string $ tableName data table name * @ param string | array $ values data table field information * @ param boolean $ replace if the table already exists, receive two values: true | false * @ see AbstractWindPdoAdapter: createTable () * @ return boolean * @ throws WindDbException

 

You can't see $ charset & $ this-> query ("set names ". $ this-> quote ($ charset ). ";"); this is the pace of Character Set problems! Solution:

Thank you! Remember to send money.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.