[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:25:12 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=e68c823
The following commit has been merged in the master branch:
commit e68c823752ffba29a6bf3a686d71e5cb808aceb2
Author: Martin Klapetek <mklapetek at kde.org>
Date: Mon Feb 9 15:30:22 2015 +0100
[WoshiChat] Remove the scrubHTML function as it can do dangerous stuff
---
.../Contents/Resources/Footer.html | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/data/styles/WoshiChat.AdiumMessageStyle/Contents/Resources/Footer.html b/data/styles/WoshiChat.AdiumMessageStyle/Contents/Resources/Footer.html
index 926a44d..9d5b630 100644
--- a/data/styles/WoshiChat.AdiumMessageStyle/Contents/Resources/Footer.html
+++ b/data/styles/WoshiChat.AdiumMessageStyle/Contents/Resources/Footer.html
@@ -1,25 +1,10 @@
<script language="Javascript" src="lib/jquery.min.js"></script>
<script type="text/javascript" defer="defer">
-
-function scrubHTML(html) {
- // unescape HTML entities
- html = html.replace(/&/ig, '&');
- html = html.replace(/</ig, '<');
- html = html.replace(/>/ig, '>');
- // undo Adium's terrible auto-linking
- html = html.replace(/"<a href="https?:\/\/.+?" title="https?:\/\/.+?">(https?:\/\/.+?)<\/a>"/g, '"$1"');
- // strip targets
- html = html.replace(/target="_blank"/g, '');
- return html
-}
-
function hipChatizeHTML(html) {
var messageNode = html.querySelector('#contents');
var rawMessage = messageNode.innerHTML;
- // scrub the raw message
- rawMessage = scrubHTML(rawMessage);
// add style to @ mentions
messageNode.innerHTML = rawMessage.replace(/(@"*[\d\w]*)/, '<span class="atTag">$1</span>');
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list