Skip to content
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

Merged
merged 5 commits into from Jul 11, 2013

Conversation

nickvergessen
Copy link
Contributor

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

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
…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
Copy link
Contributor

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?

Copy link
Collaborator

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.

Copy link
Contributor Author

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?

@imkingdavid
Copy link
Contributor

Patch looks fine to me, aside from what I commented on, which isn't a big deal.

@nickvergessen
Copy link
Contributor Author

Updated,

develop version with migration: #1512

@EXreaction EXreaction merged commit 9210d73 into phpbb:develop-olympus Jul 11, 2013
@nickvergessen nickvergessen deleted the ticket/8319 branch April 10, 2014 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants