Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#799 closed Defect (fixed)

Unused functions on PHP code

Reported by: Nicolas Owned by: davea
Priority: Trivial Milestone: Undetermined
Component: Web - Forums Version: 6.2.19
Keywords: Cc:

Description

There is some unused code in text_transform.inc; mostly leftovers from when the forums used HTML instead of BBCode.

Attachments (2)

remove-closeTags.diff (2.8 KB) - added by Nicolas 15 years ago.
Remove closeTags function and same-named property of output_options
profile-html.diff (1.0 KB) - added by Nicolas 15 years ago.
Remove sanitize_html calls from profile creation. All tags are already escaped at this point, so they are harmless.

Download all attachments as: .zip

Change History (5)

Changed 15 years ago by Nicolas

Attachment: remove-closeTags.diff added

Remove closeTags function and same-named property of output_options

comment:1 Changed 15 years ago by davea

Resolution: fixed
Status: newclosed

(In [16703]) - web: remove unused code; fixes #799

Changed 15 years ago by Nicolas

Attachment: profile-html.diff added

Remove sanitize_html calls from profile creation. All tags are already escaped at this point, so they are harmless.

comment:2 Changed 15 years ago by Nicolas

Correction: tags aren't escaped yet. But they get escaped on display.

(that's the way it should be, the database should store it without any encoding; raw data only)

comment:3 Changed 15 years ago by Nicolas

Oops... I was planning to do multiple fixes, putting them on separate patches. My bad for not expecting such a fast response!

Although on second thought, maybe profile-html.diff should be in a separate bug report... It's not unused code, it's causing bad behavior (removing stuff from profile text that it shouldn't remove); different problem...

Note: See TracTickets for help on using tickets.