Remove vid handling code from HTMLDisplayHandler

This commit is contained in:
Kijin Sung 2020-06-18 10:38:49 +09:00
parent c7949e11db
commit f8ea38c22d

View file

@ -212,12 +212,6 @@ class HTMLDisplayHandler
$pattern = '/href=(["\'])(\?[^"\']+)/s';
$output = preg_replace($pattern, 'href=$1' . \RX_BASEURL . '$2', $output);
if(Context::get('vid'))
{
$pattern = '/\/' . Context::get('vid') . '\?([^=]+)=/is';
$output = preg_replace($pattern, '/?$1=', $output);
}
}
// prevent the 2nd request due to url(none) of the background-image