[gitg/gnome-3-18] Properly escape commit messages in diff view
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/gnome-3-18] Properly escape commit messages in diff view
- Date: Wed, 23 Sep 2015 00:05:24 +0000 (UTC)
commit 8152820fd96d64d176ee208bb8a6b46a1006eb74
Author: Ting-Wei Lan <lantw src gnome org>
Date: Wed Sep 23 03:01:48 2015 +0800
Properly escape commit messages in diff view
https://bugzilla.gnome.org/show_bug.cgi?id=755436
libgitg/resources/ui/diff-view/diff-view.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgitg/resources/ui/diff-view/diff-view.js b/libgitg/resources/ui/diff-view/diff-view.js
index 13c68c2..c6e6f63 100644
--- a/libgitg/resources/ui/diff-view/diff-view.js
+++ b/libgitg/resources/ui/diff-view/diff-view.js
@@ -181,7 +181,7 @@ function prettify_message(message)
var escaped = html_escape(ret);
- escaped = ret.replace(/(https?:[^\s]*[^.])/g, "<a href=\"$1\" onclick=\"javascript:return
open_url(this);\">$1</a>");
+ escaped = escaped.replace(/(https?:[^\s]*[^.])/g, "<a href=\"$1\" onclick=\"javascript:return
open_url(this);\">$1</a>");
return escaped;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]