-
Notifications
You must be signed in to change notification settings - Fork 161
Retire incoming Trackback support and normalize comment links #176
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
base: entry-trackback-cleanup
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -93,7 +93,7 @@ public String getEmail() { | |
| * Value is always html escaped. | ||
| */ | ||
| public String getUrl() { | ||
| return StringEscapeUtils.escapeHtml4(this.pojo.getUrl()); | ||
| return StringEscapeUtils.escapeHtml4(this.pojo.getSafeUrl()); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| } | ||
|
|
||
|
|
||
|
|
@@ -147,7 +147,7 @@ public String getRemoteHost() { | |
|
|
||
|
|
||
| /** | ||
| * Get the http referrer of the comment poster, used for trackbacks. | ||
| * Get the HTTP referrer of the comment poster. | ||
| * | ||
| * Value is always html escaped. | ||
| */ | ||
|
|
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: this runs the validator (regex +
DomainValidatorlookup) on every call, andComments.jspevaluates#comment.safeUrlthree times per row whileweblog.vmevaluates$comment.urltwice per comment. Compute once per render (ans:setin the JSP, a local in the macro, or memoize in the wrapper).