[RSS Feed/News] Disallow external urls, if not written at least X posts

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Hey togther,

i have a problem with that named extension in the title.
I coded an extended \XF\Service\Message\Preparer -> public function checkValidity, where i check $message for external urls.
I use the getLinkClassTarget function from XF\Template\Templater\Formatter.

It works with that URLS:

Code:

Code:
[URL]https://www.externalUrl.com[/URL]

[URL="https://www.externalUrl.com"]https://www.externalUrl.com[/URL]

[URL='https://www.externalUrl.com']https://www.externalUrl.com[/URL]

[URL='https://www.externalUrl.com']EXTERNAL-URL[/URL]


https://www.externalUrl.com...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom