mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix forms with empty actions
This commit is contained in:
parent
3a13b51068
commit
e9bec851f9
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ class HTMLDisplayHandler
|
||||||
// handles a relative path generated by using the rewrite module
|
// handles a relative path generated by using the rewrite module
|
||||||
if(Context::isAllowRewrite())
|
if(Context::isAllowRewrite())
|
||||||
{
|
{
|
||||||
$pattern = '/(action|src|href)=(["\'])\.\/([^"\']*)(["\'])/s';
|
$pattern = '/(action|src|href)=(["\'])(?:\.\/([^"\']*))?(["\'])/s';
|
||||||
$output = preg_replace($pattern, '$1=$2' . \RX_BASEURL . '$3$4', $output);
|
$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';
|
$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