Phpcms2008 background article content changes do not display and blank problem fixed

更新时间:2018-01-22 10:51:03点击:88668 Website Optimization

gbk version of phpcms2008sp4 edit the article in the background found that the title, content, etc. do not show, as shown below:
The investigation found that phpcms2008sp4 htmlspecialchars parameter parameters used in the processing of the article information led to the loss of Chinese (php5.4 / 5.5 version need to complete the parameters). Direct use of htmlspecialchars ($ data [$ field], ENT_QUOTES) returns null, without any treatment.
 
Solution:
 
Look in data \ cache_model \ content_form.class.php
 
$ value = isset ($ data [$ field])? htmlspecialchars ($ data [$ field], ENT_QUOTES): '';
 
change into:
 
$ value = isset ($ data [$ field])? htmlspecialchars ($ data [$ field], ENT_QUOTES, 'GB2312'): '';