Заголовок | Информация | Статус |
---|---|---|
EASYWEBFOUNDBUG#0009 |
Приоритет: Средне Тип: Ошибка Просмотров: 2192 |
![]() |
Ничего если я сюда буду дублировать?
classes/others/class_ownbb.php
В конструкции обрабатывающей ссылки для неизвестных видеосерверов
elseif(Strings::XssCheckUrl($content))
{
$href=$content;
if($this->Mainclass->vars['anti_directlink'] and 0!==strpos($v,ELEANOR_PROTOCOL.$this->Mainclass->domain) and false!==$pos=strpos($v,'://') and $pos<7)
$href='go.php?'.$href;
return '<a href="/'.$href.'">'.$content.'</a>';
}
else
1)не загружена LoadOptions для использования системных настроек
2)не объявлены и не существуют переменные $pos и $v
Меняем на
elseif(Strings::XssCheckUrl($content))
{
$href=$content;
$this->Mainclass->LoadOptions(array('editor'),false);
if($this->Mainclass->vars['anti_directlink'] and 0!==strpos($v,ELEANOR_PROTOCOL.$this->Mainclass->domain))
$href='go.php?'.$href;
return '<a href="/'.$href.'">'.$content.'</a>';
}
else
classes/others/class_ownbb.php
В конструкции обрабатывающей ссылки для неизвестных видеосерверов
elseif(Strings::XssCheckUrl($content))
{
$href=$content;
if($this->Mainclass->vars['anti_directlink'] and 0!==strpos($v,ELEANOR_PROTOCOL.$this->Mainclass->domain) and false!==$pos=strpos($v,'://') and $pos<7)
$href='go.php?'.$href;
return '<a href="/'.$href.'">'.$content.'</a>';
}
else
1)не загружена LoadOptions для использования системных настроек
2)не объявлены и не существуют переменные $pos и $v
Меняем на
elseif(Strings::XssCheckUrl($content))
{
$href=$content;
$this->Mainclass->LoadOptions(array('editor'),false);
if($this->Mainclass->vars['anti_directlink'] and 0!==strpos($v,ELEANOR_PROTOCOL.$this->Mainclass->domain))
$href='go.php?'.$href;
return '<a href="/'.$href.'">'.$content.'</a>';
}
else
Комментариев нет... Вы можете сделать это первым!