mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
This commit is contained in:
parent
d9397bf6fe
commit
2c1d380a0a
1 changed files with 4 additions and 1 deletions
|
|
@ -223,7 +223,10 @@ class HTMLDisplayHandler
|
|||
// handles a relative path generated by using the rewrite module
|
||||
if(Context::isAllowRewrite())
|
||||
{
|
||||
$pattern = '/(action|src|href)=(["\'])(?:\.\/([^"\']*))?(["\'])/s';
|
||||
$pattern = '/(action)=(["\'])(["\'])/s';
|
||||
$output = preg_replace($pattern, '$1=$2' . \RX_BASEURL . '$3', $output);
|
||||
|
||||
$pattern = '/(action|src|href)=(["\'])\.\/([^"\']*)(["\'])/s';
|
||||
$output = preg_replace($pattern, '$1=$2' . \RX_BASEURL . '$3$4', $output);
|
||||
|
||||
$pattern = '/src=(["\'])((?:files\/(?:attach|cache|faceOff|member_extra_info|thumbnails)|addons|common|(?:m\.)?layouts|modules|widgets|widgetstyle)\/[^"\']+)(["\'])/s';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue