#30162 closed defect (bug) (fixed)
make_clickable - skip script & style tags
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Formatting | Keywords: | has-patch has-unit-tests commit |
Focuses: | Cc: |
Description
Hey there,
the make_clickable function should also skip the script
and style
tags.
PS: I also moved the $nested_code_pre
to the front of the elseif-request for better performance (really small improvement).
Attached my patch...
Attachments (3)
Change History (12)
#3
@
9 years ago
- Bring patch current
- Adds a simple unit test verifying that links are no longer auto-linked inside script or style tags after applying the patch
#5
@
9 years ago
- Keywords dev-feedback removed
- Milestone changed from Awaiting Review to Future Release
- Version trunk deleted
#6
@
8 years ago
- Keywords has-unit-tests added
- Milestone changed from Future Release to 4.5
Patch still applies, tests pass. Addition makes sense to me.
#7
follow-up:
↓ 9
@
8 years ago
- Keywords commit added
- Owner set to johnbillion
- Status changed from new to accepted
30162.2.diff uses a data provider for its tests.
#9
in reply to:
↑ 7
@
8 years ago
Replying to johnbillion:
30162.2.diff uses a data provider for its tests.
@johnbillion - Love that data provider!
Thanks for adjusting and the reminder: I learned about that after writing these tests.
Note: See
TracTickets for help on using
tickets.
Tests please!