diff options
author | Osman Surkatty <osman@surkatty.org> | 2014-10-17 07:56:42 +0400 |
---|---|---|
committer | Osman Surkatty <osman@surkatty.org> | 2014-10-17 07:56:42 +0400 |
commit | 20cc3ad536b5781e9f194bae1a5dbd9ff6b93ec8 (patch) | |
tree | 03f1235e57fbb1719fcc06218d054773cbd6fed0 /js/README.md | |
parent | d76e38c70c86c5ae4414653f85ca64e2b67188db (diff) |
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.
Diffstat (limited to 'js/README.md')
-rw-r--r-- | js/README.md | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/js/README.md b/js/README.md index dc4220836e..06c7cf0ae3 100644 --- a/js/README.md +++ b/js/README.md @@ -27,7 +27,7 @@ The js/ folder contains: * piwik.js is minified using YUICompressor 2.4.2. To install YUICompressor run: - ``` + ```bash $ cd /path/to/piwik/js/ $ wget http://www.julienlecomte.net/yuicompressor/yuicompressor-2.4.2.zip $ unzip yuicompressor-2.4.2.zip @@ -37,7 +37,7 @@ The js/ folder contains: http://yuilibrary.com/projects/yuicompressor/ticket/2343811, or run: - ``` + ```bash $ 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 ``` @@ -54,5 +54,4 @@ The js/ folder contains: * We use /*! to include Piwik's license header in the minified source. Read Stallman's "The JavaScript Trap" for more information. -* We do not include the version number as a security best practice - (information disclosure). +* 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/). |