PHPBB3-14535 [url] works unexpected
PHPBB3-14535 [url] works unexpected
This demonstrating link should not be a link.
FreeBSD Remote Installation ● PayPal.Me/JoeUser
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task,
and one of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task,
and one of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Re: PHPBB3-14535 [url] works unexpected
Code: Select all
[url]www.phpbb.com[/url]
Re: PHPBB3-14535 [url] works unexpected
What is your take on this?JoshyPHP wrote: Poke
Re: PHPBB3-14535 [url] works unexpected
FreeBSD Remote Installation ● PayPal.Me/JoeUser
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task,
and one of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task,
and one of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Re: PHPBB3-14535 [url] works unexpected
FreeBSD Remote Installation ● PayPal.Me/JoeUser
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task,
and one of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task,
and one of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Re: PHPBB3-14535 [url] works unexpected
It's by design. The URL filter accepts valid URLs, including protocol-relative URLs and other relative URLs.
If you want to reject relative URLs you can add another filter with this:
Code: Select all
$configurator->tags['URL']->attributes['url']->filterChain->append('#regexp')->setRegexp('#^\\w+://#');
In case I decide to add an option, I'm open to suggestions for the name or the property or method in the UrlConfig object used to configure URL options. Probably something like this:
Code: Select all
$configurator->urlConfig->requireScheme = true;
$configurator->urlConfig->requireHost = true;
// Or maybe this
$configurator->urlConfig->requireParts('scheme,host');
Re: PHPBB3-14535 [url] works unexpected
I think with what we have in the editor with the link button's help message, it should be clear that you need to specify the protocol, which is different in some cases from the 3.1 behaviour, but IMHO it is an improvement. Probably, it would be nice to add some more configuration options in the ACP, but if I understand you correctly, then that should be possible. I'll close the ticket as won't fix for now, thanks for the help.
Re: PHPBB3-14535 [url] works unexpected
I just want to come back to this once more since we've just got a support request based on this change.
Many inexperienced users that I know of always use the URL tag in order to post a URL, because they think that's the way it should be when posting one. For them this change might cause quite some confusion, they'll have no idea why all of a sudden the board URL is added to the one they post. For me too it sounds counter-intuitive to change a valid URL into one that clearly isn't.
Can't we get the best of both worlds and only make the URLs relative when someone posts a
So that something like
This way it wouldn't break for people non too tech-savvy, and people that want relative links can easily use those too.
Anyone any thoughts on this?
Many inexperienced users that I know of always use the URL tag in order to post a URL, because they think that's the way it should be when posting one. For them this change might cause quite some confusion, they'll have no idea why all of a sudden the board URL is added to the one they post. For me too it sounds counter-intuitive to change a valid URL into one that clearly isn't.
Can't we get the best of both worlds and only make the URLs relative when someone posts a
/
first?So that something like
[url]www.google.com[/url]
would go to www.google.com and [url]/images[/url]
would go to http://area51.phpbb.com/images (the latter example already works this way)This way it wouldn't break for people non too tech-savvy, and people that want relative links can easily use those too.
Anyone any thoughts on this?
Jim Mossing Holsteyn - Moderator Team Member
Knowledge Base | Documentation | Board rules
No support here on Area51, please visit the Support forums over at phpBB.com
Knowledge Base | Documentation | Board rules
No support here on Area51, please visit the Support forums over at phpBB.com
-
- Registered User
- Posts: 48
- Joined: Thu Dec 24, 2015 10:47 am
Re: PHPBB3-14535 [url] works unexpected
^ that sounds perf.
I support it!
I support it!