Phpcms2008 background article content changes do not display and blank problem fixed
更新时间:2018-01-22 10:51:03•点击:93978 • 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'): '';
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'): '';
Recommended Reading
-
To Xiaobai: Localization of Synology's hard disk (raidrive mounts Synology remotely via WebDAV, ftp)
2019-12-28 15:36:59•58289 次
-
Why can't I use the Group Assistant in my LAN to search for my group?
2019-07-22 11:15:18•93878 次
-
About the solution that Photo Station external network cannot access
2019-07-13 11:22:35•112218 次
-
Synology sets DDNS to solve public network IP change problems
2019-06-03 13:56:55•330251 次