منتديات لك عيوني

منتديات لك عيوني (https://www.ahmad9.com/index.php)
-   لك عنوني مواضيع مكرره (https://www.ahmad9.com/forumdisplay.php?f=99)
-   -   ثغره + ترقيع لكافة النسخ (https://www.ahmad9.com/showthread.php?t=38301)

شيخ نفسه 08-12-2009 08:11 AM

ثغره + ترقيع لكافة النسخ
 
السلام عليكم ورحمة الله وبركاته

المصدر http://www.vbulletin...97&postcount=4

اقتباس: For those with expired owned licenses that does not need the full bug fix maintenance release, a patch for the vbchop() problem described in first post is now added in your member's area. You may download it here:
http://members.vbull...om/patches.php

This problem is not exclusive to 3.8. We are looking at releasing the security patches for 3.7 and 3.6 within the next 24 hours. But in the mean time, you can DIY by editing includes/functions.php.

Find:

كود PHP: if (preg_match_all('/&(#[0-9]+|lt|gt|quot|amp);/', $string, $matches, PREG_OFFSET_CAPTURE))
Add before that line:

كود PHP: $pretruncate = 13 * $length;
$string = substr($string, 0, $pretruncate);
This will make the string the regular expression is working with much much shorter, and not encounter the problem described above. كل ماعليك فتح ملف functions.php

الموجود داخل includes/functions.php

والبحث عن :

كود PHP: if (preg_match_all('/&(#[0-9]+|lt|gt|quot|amp);/', $string, $matches, PREG_OFFSET_CAPTURE))
اضف فوقه :

كود PHP: $pretruncate = 13 * $length;
$string = substr($string, 0, $pretruncate);
وسلامتكم يالطيبين للعلم بالشىء ان الترقيع لنسخ 3.6 ومافوق

والاخوه المرخصين يمكنهم تحميل الباتش من هونا

http://members.vbull...om/patches.php


الساعة الآن 05:49 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.