CKEditor & amp; CKFinder Configuration

Source: Internet
Author: User

CKEditor & CKFinder cracked Baidu Network Disk address: Password: yydcdut

   

Config. js

 CKEDITOR.editorConfig =       config.language = 'zh-cn'     config.uiColor = '#FFA'     config.skin = 'v2'     config.width = 850     config.height = 400     config.toolbar = 'Full' };

                            yyd                                  

        

  • Create in the same directory as CKEditor and CKFinderFolder
  • Repair changeFile

Function of the row

                        }

The row is changed to the created uploads path.

  = '/CK/plugins/uploads/';

 

Implementation

    

CreateFile to print the passed POST

 <? ("Content-Type:text/html; charset=utf-8"  = ['editor1'  = (htmlspecialchars_decode(   ?>

 

    

After I complete the configuration, the image cannot be displayed after the submit is submitted. When I checked the source code, I found that double quotation marks were escaped and it hurts. I don't know whether the CKEditor is escaped by the browser, because a few days ago, when I tested SQL injection, I found that it was clearly possible to inject, but the results could not be returned, then, the password is printed on the local machine, and it is escaped, which means it hurts. So here I use $ data = stripslashes (htmlspecialchars_decode ($ str); after escaping, I will escape the lake area and the result will be OK.

The CKEditor & CKFinder combination can not only upload images, but also files.

 

 

 

Reprinted please indicate the source: http://www.cnblogs.com/yydcdut/p/3518102.html

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.