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

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

         :: تالقي مع اجمل فساتين وعبايات وجلابيات بالمملكة (آخر رد :رودى طه)       :: اخصائية مساج الخبر منزلى 0533972744 (آخر رد :رودى طه)       :: massage in riyadh (آخر رد :رودى طه)       :: افضل دكتور حقن مجهري (آخر رد :elzwawy)       :: اخصائية مساج الدمام للرجال 0533972744 (آخر رد :رودى طه)       :: اخصائية مساج بالرياض للرجال562558590 (آخر رد :رودى طه)       :: افضل انواع ستاند جوال للتصوير,افضل نوع ستاند جوال للتصوير,ارخص اسعار ستاند جوال (آخر رد :بوابة الصين العربية)       :: تصاميم مظلات برجولات وجلسات خارجية في الرياض 0563866945 (آخر رد :ksa ads)       :: مساج منزلى مكة 0562558590 (آخر رد :رودى طه)       :: مساج منزلي جازان وابوعريش 0562558590 (آخر رد :رودى طه)      

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

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 متاحة



الساعة الآن 01:17 PM


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

RSS RSS 2.0 XML MAP HTML