[DRE-commits] [ruby-treetop] 03/04: Fix privacy breach in the HTML documentation
Cédric Boutillier
boutil at moszumanska.debian.org
Sun Jan 19 15:56:29 UTC 2014
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-treetop.
commit c21817b3b8a90e0ee4d6a6354310eef2cb292ede
Author: Cédric Boutillier <boutil at debian.org>
Date: Sun Jan 19 16:27:35 2014 +0100
Fix privacy breach in the HTML documentation
---
debian/changelog | 1 +
debian/patches/0004-privacy-breach.patch | 125 +++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 127 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 3942054..c0d168f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ ruby-treetop (1.4.14-2) UNRELEASED; urgency=low
* Use the rake method to run the tests.
This method finds the spec_helper.rb file (Closes: #735866)
* Bump Standards-Version to 3.9.5 (no changes needed)
+ * Fix privacy breach in the HTML documentation
-- Cédric Boutillier <boutil at debian.org> Thu, 20 Jun 2013 16:18:08 +0200
diff --git a/debian/patches/0004-privacy-breach.patch b/debian/patches/0004-privacy-breach.patch
new file mode 100644
index 0000000..d9efade
--- /dev/null
+++ b/debian/patches/0004-privacy-breach.patch
@@ -0,0 +1,125 @@
+Description: do not load external scripts from the header of HTML documents
+ in order to prevent privacy breach
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2014-01-19
+
+--- a/doc/site/contribute.html
++++ b/doc/site/contribute.html
+@@ -1,10 +1,4 @@
+ <html><head><link href="./screen.css" rel="stylesheet" type="text/css" />
+- <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+- </script>
+- <script type="text/javascript">
+- _uacct = "UA-3418876-1";
+- urchinTracker();
+- </script>
+ </head><body><div id="top"><div id="main_navigation"><ul><li><a href="syntactic_recognition.html">Documentation</a></li><li>Contribute</li><li><a href="index.html">Home</a></li></ul></div></div><div id="middle"><div id="main_content"><h1>Google Group</h1>
+
+ <p>I've created a <a href="http://groups.google.com/group/treetop-dev">Google Group</a> as a better place to organize discussion and development.
+@@ -121,4 +115,4 @@
+
+ <p>In this case a block will be detected only if a change in indentation warrants it. Note that this change in the state of indentation must be undone if a subsequent failure causes this node not to ultimately be incorporated into a successful result.</p>
+
+-<p>I am by no means sure that the above sketch is free of problems, or even that this overall strategy is sound, but it seems like a promising path.</p></div></div><div id="bottom"></div></body></html>
+\ No newline at end of file
++<p>I am by no means sure that the above sketch is free of problems, or even that this overall strategy is sound, but it seems like a promising path.</p></div></div><div id="bottom"></div></body></html>
+--- a/doc/site/index.html
++++ b/doc/site/index.html
+@@ -1,10 +1,4 @@
+ <html><head><link href="./screen.css" rel="stylesheet" type="text/css" />
+- <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+- </script>
+- <script type="text/javascript">
+- _uacct = "UA-3418876-1";
+- urchinTracker();
+- </script>
+ </head><body><div id="top"><div id="main_navigation"><ul><li><a href="syntactic_recognition.html">Documentation</a></li><li><a href="contribute.html">Contribute</a></li><li>Home</li></ul></div></div><div id="middle"><div id="main_content"><p class="intro_text">
+
+ Treetop is a language for describing languages. Combining the elegance of Ruby with cutting-edge <em>parsing expression grammars</em>, it helps you analyze syntax with revolutionary ease.
+@@ -99,4 +93,4 @@
+ <li>Bryan Ford for his seminal work on Packrat Parsers.</li>
+ <li>The editors of Lambda the Ultimate, where I discovered parsing expression grammars.</li>
+ </ul>
+-</div></div><div id="bottom"></div></body></html>
+\ No newline at end of file
++</div></div><div id="bottom"></div></body></html>
+--- a/doc/site/pitfalls_and_advanced_techniques.html
++++ b/doc/site/pitfalls_and_advanced_techniques.html
+@@ -1,10 +1,4 @@
+ <html><head><link href="./screen.css" rel="stylesheet" type="text/css" />
+- <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+- </script>
+- <script type="text/javascript">
+- _uacct = "UA-3418876-1";
+- urchinTracker();
+- </script>
+ </head><body><div id="top"><div id="main_navigation"><ul><li>Documentation</li><li><a href="contribute.html">Contribute</a></li><li><a href="index.html">Home</a></li></ul></div></div><div id="middle"><div id="main_content"><div id="secondary_navigation"><ul><li><a href="syntactic_recognition.html">Syntax</a></li><li><a href="semantic_interpretation.html">Semantics</a></li><li><a href="using_in_ruby.html">Using In Ruby</a></li><li>Advanced Techniques</li></ul></div><div id="docum [...]
+
+ <h2>Left Recursion</h2>
+@@ -65,4 +59,4 @@
+ end
+ </code></pre>
+
+-<p>In general, when the syntax gets tough, it helps to focus on what you really mean. A keyword is a character not followed by another character that isn't a space.</p></div></div></div><div id="bottom"></div></body></html>
+\ No newline at end of file
++<p>In general, when the syntax gets tough, it helps to focus on what you really mean. A keyword is a character not followed by another character that isn't a space.</p></div></div></div><div id="bottom"></div></body></html>
+--- a/doc/site/semantic_interpretation.html
++++ b/doc/site/semantic_interpretation.html
+@@ -1,10 +1,4 @@
+ <html><head><link href="./screen.css" rel="stylesheet" type="text/css" />
+- <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+- </script>
+- <script type="text/javascript">
+- _uacct = "UA-3418876-1";
+- urchinTracker();
+- </script>
+ </head><body><div id="top"><div id="main_navigation"><ul><li>Documentation</li><li><a href="contribute.html">Contribute</a></li><li><a href="index.html">Home</a></li></ul></div></div><div id="middle"><div id="main_content"><div id="secondary_navigation"><ul><li><a href="syntactic_recognition.html">Syntax</a></li><li>Semantics</li><li><a href="using_in_ruby.html">Using In Ruby</a></li><li><a href="pitfalls_and_advanced_techniques.html">Advanced Techniques</a></li></ul></div><div [...]
+
+ <p>Lets use the below grammar as an example. It describes parentheses wrapping a single character to an arbitrary depth.</p>
+@@ -242,4 +236,4 @@
+ </td>
+ </tr>
+ </table>
+-</div></div></div><div id="bottom"></div></body></html>
+\ No newline at end of file
++</div></div></div><div id="bottom"></div></body></html>
+--- a/doc/site/syntactic_recognition.html
++++ b/doc/site/syntactic_recognition.html
+@@ -1,10 +1,4 @@
+ <html><head><link href="./screen.css" rel="stylesheet" type="text/css" />
+- <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+- </script>
+- <script type="text/javascript">
+- _uacct = "UA-3418876-1";
+- urchinTracker();
+- </script>
+ </head><body><div id="top"><div id="main_navigation"><ul><li>Documentation</li><li><a href="contribute.html">Contribute</a></li><li><a href="index.html">Home</a></li></ul></div></div><div id="middle"><div id="main_content"><div id="secondary_navigation"><ul><li>Syntax</li><li><a href="semantic_interpretation.html">Semantics</a></li><li><a href="using_in_ruby.html">Using In Ruby</a></li><li><a href="pitfalls_and_advanced_techniques.html">Advanced Techniques</a></li></ul></div><di [...]
+
+ <p>Treetop grammars are written in a custom language based on parsing expression grammars. Literature on the subject of <a href="http://en.wikipedia.org/wiki/Parsing_expression_grammar">parsing expression grammars</a> (PEGs) is useful in writing Treetop grammars.</p>
+@@ -275,4 +269,4 @@
+ tried at which locations in the input, and what the result was. This process, called memoization,
+ requires that the rule would produce the same result (if run again) as it produced the first time when
+ the result was remembered. If you violate this principle in your semantic predicates, be prepared to
+-fight Cerberus before you're allowed out of Hades again.</p></div></div></div><div id="bottom"></div></body></html>
+\ No newline at end of file
++fight Cerberus before you're allowed out of Hades again.</p></div></div></div><div id="bottom"></div></body></html>
+--- a/doc/site/using_in_ruby.html
++++ b/doc/site/using_in_ruby.html
+@@ -1,10 +1,4 @@
+ <html><head><link href="./screen.css" rel="stylesheet" type="text/css" />
+- <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+- </script>
+- <script type="text/javascript">
+- _uacct = "UA-3418876-1";
+- urchinTracker();
+- </script>
+ </head><body><div id="top"><div id="main_navigation"><ul><li>Documentation</li><li><a href="contribute.html">Contribute</a></li><li><a href="index.html">Home</a></li></ul></div></div><div id="middle"><div id="main_content"><div id="secondary_navigation"><ul><li><a href="syntactic_recognition.html">Syntax</a></li><li><a href="semantic_interpretation.html">Semantics</a></li><li>Using In Ruby</li><li><a href="pitfalls_and_advanced_techniques.html">Advanced Techniques</a></li></ul>< [...]
+
+ <h2>Using the Command Line Compiler</h2>
+@@ -120,4 +114,4 @@
+
+ <p>Instead, add methods to the root rule which return the information you require in a sensible form.
+ Each rule can call its sub-rules, and this method of walking the syntax tree is much preferable to
+-attempting to walk it from the outside.</p></div></div></div><div id="bottom"></div></body></html>
+\ No newline at end of file
++attempting to walk it from the outside.</p></div></div></div><div id="bottom"></div></body></html>
diff --git a/debian/patches/series b/debian/patches/series
index b26b275..add9f82 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
0001-Do-not-require-rubygems.patch
0002-Add-a-tt-manual-page.patch
0003-Use-ruby18-compatible-regexp.patch
+0004-privacy-breach.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-treetop.git
More information about the Pkg-ruby-extras-commits
mailing list