Skip to content
Extraits de code Groupes Projets
Valider 20cc3ad5 rédigé par Osman Surkatty's avatar Osman Surkatty
Parcourir les fichiers

Remove irrelevant reference to a "security best practice"

This change includes three things:

1. Removing note about omitting version number due to "security best practices" as not including a version number is actually more [security through obscurity](https://en.wikipedia.org/wiki/Security_through_obscurity) rather than any real security.
2. Removed the irrelevant Stallman reference.
3. Syntax highlighting.
parent d76e38c7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -27,7 +27,7 @@ The js/ folder contains: ...@@ -27,7 +27,7 @@ The js/ folder contains:
* piwik.js is minified using YUICompressor 2.4.2. * piwik.js is minified using YUICompressor 2.4.2.
To install YUICompressor run: To install YUICompressor run:
``` ```bash
$ cd /path/to/piwik/js/ $ cd /path/to/piwik/js/
$ wget http://www.julienlecomte.net/yuicompressor/yuicompressor-2.4.2.zip $ wget http://www.julienlecomte.net/yuicompressor/yuicompressor-2.4.2.zip
$ unzip yuicompressor-2.4.2.zip $ unzip yuicompressor-2.4.2.zip
...@@ -37,7 +37,7 @@ The js/ folder contains: ...@@ -37,7 +37,7 @@ The js/ folder contains:
http://yuilibrary.com/projects/yuicompressor/ticket/2343811, http://yuilibrary.com/projects/yuicompressor/ticket/2343811,
or run: or run:
``` ```bash
$ cd /path/to/piwik/js/ $ cd /path/to/piwik/js/
$ sed '/<DEBUG>/,/<\/DEBUG>/d' < piwik.js | sed 's/eval/replacedEvilString/' | java -jar yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar --type js --line-break 1000 | sed 's/replacedEvilString/eval/' | sed 's/^[/][*]/\/*!/' > piwik-min.js && cp piwik-min.js ../piwik.js $ sed '/<DEBUG>/,/<\/DEBUG>/d' < piwik.js | sed 's/eval/replacedEvilString/' | java -jar yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar --type js --line-break 1000 | sed 's/replacedEvilString/eval/' | sed 's/^[/][*]/\/*!/' > piwik-min.js && cp piwik-min.js ../piwik.js
``` ```
...@@ -54,5 +54,4 @@ The js/ folder contains: ...@@ -54,5 +54,4 @@ The js/ folder contains:
* We use /*! to include Piwik's license header in the minified source. Read * We use /*! to include Piwik's license header in the minified source. Read
Stallman's "The JavaScript Trap" for more information. Stallman's "The JavaScript Trap" for more information.
* We do not include the version number as a security best practice * Information about the current version number you have installed can be found under [What version of Piwik do I have?](http://piwik.org/faq/how-to-update/faq_8/).
(information disclosure).
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter