Skip to content

Commit 6d71c7c

Browse files
committed
Merge branch 'release/3.0.1'
2 parents 4c2a0f8 + 8eff247 commit 6d71c7c

File tree

6 files changed

+35
-22
lines changed

6 files changed

+35
-22
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## v3.0.1, 2018-04-17
4+
5+
- Added Yellow CMS third party integration. (so-ri)
6+
7+
This release contains changes relevant to security:
8+
9+
- Fixed XSS vulnerability discovered by JoJoAction in twitter service. (liayn)
10+
311
## v3.0.0, 2018-03-15
412

513
- Added smaller share button variants. (richard67)

README-de.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ Shariff besteht aus zwei Teilen. Der erste Teil ist eine einfache JavaScript-Bib
1313
## Erste Schritte
1414

1515
1. Das [aktuellste Shariff-Release](https://github.com/heiseonline/shariff/releases/latest) herunterladen
16-
2. CSS im `<head>` einbinden:
17-
* `build/shariff.complete.css` enthält alle Abhängigkeiten
18-
* `build/shariff.min.css` verwenden, wenn [Font Awesome](https://github.com/FortAwesome/Font-Awesome) bereits in Ihrer Seite geladen wird
19-
3. JavaScript unmittelbar vor `</body>` einbinden:
20-
* `build/shariff.complete.js` enthält alle Abhängigkeiten
21-
* `build/shariff.min.js` verwenden, wenn [jQuery](https://github.com/jquery/jquery) bereits in der Seite vorhanden ist
22-
4. Beliebig viele `<div class="shariff">` Elemente einfügen
23-
5. Mit den unten beschriebenen `data`-Attributen Aussehen und Funktion konfigurieren
16+
2. Alle im Release enthaltenen Dateien hochladen
17+
3. CSS im `<head>` einbinden:
18+
* `shariff.complete.css` verlässt sich auf die im Release enthaltenen Abhängigkeiten
19+
* `shariff.min.css` verwenden, wenn [Font Awesome](https://github.com/FortAwesome/Font-Awesome) bereits in Ihrer Seite geladen wird
20+
4. JavaScript unmittelbar vor `</body>` einbinden:
21+
* `shariff.complete.js` verlässt sich auf die im Release enthaltenen Abhängigkeiten
22+
* `shariff.min.js` verwenden, wenn [jQuery](https://github.com/jquery/jquery) bereits in der Seite vorhanden ist
23+
5. Beliebig viele `<div class="shariff">` Elemente einfügen
24+
6. Mit den unten beschriebenen `data`-Attributen Aussehen und Funktion konfigurieren
2425

2526
Die Share-Counts in den Buttons benötigen ein [Backend](#backends) auf ihrem Server.
2627

@@ -188,3 +189,4 @@ Bekannte Shariff-Integrationen für Drittanbieter-Systeme:
188189
* [WordPress-Plugin Shariff Wrapper](https://wordpress.org/plugins/shariff/)
189190
* [Xenforo [ITM] ctSSB für Xenforo 1.5](https://github.com/McAtze/-ITM-ctShariffSocialButtons)
190191
* [Xenforo [WMTech] Social Share Privacy Plugin](https://wmtech.net/products/wmtech-social-share-privacy.41/)
192+
* [Yellow Plugin Shariff](https://github.com/schulle4u/yellow-plugin-shariff)

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ Shariff consists of two parts: a simple JavaScript client library and an optiona
1414
## Getting Started
1515

1616
1. Download the [latest release](https://github.com/heiseonline/shariff/releases/latest)
17-
2. Include CSS in `<head>`:
18-
* `build/shariff.complete.css` contains all dependencies
17+
2. Upload all files included in the release
18+
3. Include CSS in `<head>`:
19+
* `shariff.complete.css` uses the dependencies included in the release files
1920
* if [Font Awesome](https://github.com/FortAwesome/Font-Awesome) is already included in your site, use `build/shariff.min.css`
20-
3. Include JavaScript right before `</body>`:
21-
* `build/shariff.complete.js` contains all dependencies
21+
4. Include JavaScript right before `</body>`:
22+
* `shariff.complete.js` uses the dependencies included in the release files
2223
* if [jQuery](https://github.com/jquery/jquery) is already included in your site, use `build/shariff.min.js`
23-
4. Insert one or more `<div class="shariff">` elements.
24-
5. Customize the look using data-* attributes.
24+
5. Insert one or more `<div class="shariff">` elements.
25+
6. Customize the look using data-* attributes.
2526

2627
To enable the counters in the buttons, see section [Backends](#backends).
2728

@@ -190,3 +191,4 @@ This is a list of integrations for third-party systems:
190191
* [WordPress Plugin Shariff Wrapper](https://wordpress.org/plugins/shariff/)
191192
* [Xenforo [ITM] ctSSB for Xenforo 1.5](https://github.com/McAtze/-ITM-ctShariffSocialButtons)
192193
* [Xenforo [WMTech] Social Share Privacy Plugin](https://wmtech.net/products/wmtech-social-share-privacy.41/)
194+
* [Yellow Plugin Shariff](https://github.com/schulle4u/yellow-plugin-shariff)

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "shariff",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "Shariff enables website users to share their favorite content without compromising their privacy.",
55
"main": "src/js/shariff.js",
66
"scripts": {

src/js/services/twitter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ var url = require('url')
55
// abbreviate at last blank before length and add "\u2026" (horizontal ellipsis)
66
var abbreviateText = function(text, length) {
77
var div = document.createElement('div')
8-
div.innerHTML = text
8+
var node = document.createTextNode(text)
9+
div.appendChild(node)
910
var abbreviated = div.textContent
1011
if (abbreviated.length <= length) {
1112
return text

0 commit comments

Comments
 (0)