Urls are not clickable ie converted to <a href="">
Bug #656191 reported by
David Rubin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LoCo Team Portal |
Fix Released
|
Wishlist
|
Adnane Belmadiaf |
Bug Description
Pages like http://
Seems like a simple fix would be do do
import re
myString = "This is my tweet check it out http://
r = re.compile(r"(http://[^ ]+)")
print r.sub(r'<a href="\1">\1</a>', myString)
From http://
Just before displaying the text (after it has been escaped for other injections)
Seems easy to implement and only a minor view change so we can remove it at any point.
Related branches
lp:~daker/loco-team-portal/fix.656191
- Daniel Holbach (community): Approve
-
Diff: 25 lines (+2/-2)2 files modifiedloco_directory/templates/events/global_event_detail.inc.html (+1/-1)
loco_directory/templates/events/team_event_detail.inc.html (+1/-1)
Changed in loco-directory: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
Changed in loco-directory: | |
assignee: | nobody → Adnane Belmadiaf (adnane002) |
Changed in loco-directory: | |
milestone: | none → 0.2.20 |
status: | In Progress → Fix Committed |
Changed in loco-directory: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
That fix is much better then my suggestion.
thanks