Skip to:
Content

BuddyPress.org

Opened 7 years ago

Last modified 6 years ago

#7740 new defect (bug)

Adding links to BP messages results in incorrect href being added

Reported by: venutius's profile Venutius Owned by:
Milestone: Awaiting Contributions Priority: normal
Severity: normal Version:
Component: Messages Keywords:
Cc:

Description

When composing messages there seems to be a bug where the href for the link is being overwritten by BP.

For example

<a href="www.test.com">Test</a>

is being converted to:

<a href="http://buddysite.com/members/username/messages/view/3/www.test.com">Test</a>

I've tried this on a few sites, they all show the same behavior.

Change History (5)

#1 @DJPaul
7 years ago

  • Component changed from Core to Messages

#2 @DJPaul
7 years ago

Any chance you can check the database?

e.g. is the link being changed on write to the database, or is it being modified on display (correct in the DB)?

#3 @r-a-y
7 years ago

<a href="www.test.com">Test</a> is wrong syntax for links.

Have you tried:

<a href="hxxp://www.test.com">Test</a>

#4 @DJPaul
7 years ago

  • Milestone changed from Awaiting Review to Under Consideration

<a href="www.test.com"> is close enough to a link that it is intriguing why the current URL is being prefixed to it.
That's what I think we need to look at.

#5 @DJPaul
6 years ago

  • Milestone changed from Under Consideration to Awaiting Contributions
Note: See TracTickets for help on using tickets.