New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ticket/8319] Prepend Board URL to LOCAL_URL links to prevent abuse #1459
Conversation
The description says: "The URL must be relative to the topic page and cannot contain a server name or protocol." We now enforce this and will add a new token with the current behaviour back. PHPBB3-8319
…L parts PHPBB3-8319
…update To fix http://tracker.phpbb.com/browse/PHPBB3-8319 we changed the second_pass_replace value, so that needs updating for existing ones. PHPBB3-8319
The explanation now states that links are prefixed with the board URL. PHPBB3-8319
@@ -2204,6 +2204,36 @@ function change_database_data(&$no_updates, $version) | |||
_sql($sql, $errored, $error_ary); | |||
} | |||
|
|||
/** | |||
* Update BBCodes that currently use the LOCAL_URL tag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we adding this thing in migration data?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dhruvgoel92 This is olympus world. No migrations here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess I should create a second PR/Branch for Develop because of this?
Patch looks fine to me, aside from what I commented on, which isn't a big deal. |
Updated, develop version with migration: #1512 |
PHPBB3-8319
The description says:
"The URL must be relative to the topic page and cannot contain a server name
or protocol."
We now enforce this and will added a new token RELATIVE_URL with the current behaviour.
Existing BBCodes are updated to the new replacement on update
http://tracker.phpbb.com/browse/PHPBB3-8319