إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...

انضم الينا
استراحات زايد الصفحة الرئيسية

         :: برامج الرشاقة السعيدة (آخر رد :دارين الدوسري)       :: متجر بي راقى لبيع اللوحات الجدارية (آخر رد :حسن سليمة)       :: شركة تنظيف مكيفات بالدمام (آخر رد :العنود جابر)       :: شركة تركيب كاميرات مراقبة بينبع (آخر رد :rwnaa_1)       :: المنصات عبر الإنترنت من التقنيات المبتكرة (آخر رد :اسماعيل رضا)       :: برامج الحفظ عبر الإنترنت المرونة (آخر رد :اسماعيل رضا)       :: تطبيق كليك كاش click cash (آخر رد :جاسم الماهر)       :: متجر ساكورا للهدايا: تمتع بتجربة تسوق استثنائية (آخر رد :نادية معلم)       :: التداول والأسهم: دليل شامل لعالم الاستثمار (آخر رد :محمد العوضي)       :: برامج الرشاقة السعيدة (آخر رد :دارين الدوسري)      

إضافة رد
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 06-21-2010, 07:30 PM
عضو ماسي
بيانات محروم.كوم
 رقم العضوية : 503
 تاريخ التسجيل : Dec 2007
الجنس : female
علم الدوله :
 المشاركات : 2,100,613
عدد الـنقاط :3341
 تقييم المستوى : 2139

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__
رد مع اقتباس
إضافة رد

مواقع النشر (المفضلة)


تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة



الساعة الآن 09:01 AM


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir

RSS RSS 2.0 XML MAP HTML