|
إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...
انضم الينا
#1
| ||
| ||
If you create an article with any html special characters, in my case it was quote ("), in the title, the page selection control will display it improperly. The issue is that the article title is stored with special characters already encoded. When the article title is added to the pagelist array, it is added before the page list is encoded so it winds up being encoded twice. For example: "Test" gets stored to the db as "Test" and when the second htmlspecialchars is run on it it becomes "Test". End result your forum shows "Test" in the page control instead of "Test". I have a workaround and a fix for this. The workaround is to add a replacement variable to replace " with " (or whatever special characters your using). This is a hack but it will continue to work if a new version of VB comes out without the fix. The actual fix to the issue (or at least my fix) is to edit packages/vbcms/view/article.php. Find the line (line 55 in 4.04) that says: PHP Code: $pagelist[1] = $this->title And change it to: PHP Code: $pagelist[1] = htmlspecialchars_decode ($this->title); __DEFINE_LIKE_SHARE__ |
مواقع النشر (المفضلة) |
| |