[libhttpseverywhere/fullxml] context: give correct node to ruleset constructor



commit f3ec225ea09d2bbfc10fb8708633e249ec69783d
Author: grindhold <grindhold gmx net>
Date:   Mon Sep 18 21:00:42 2017 +0200

    context: give correct node to ruleset constructor
    
    passing the root-node of the rulesetlibrary to the ruleset-xml-
    constructor is not the intended behaviour. we want to parse single
    rulesets here.

 src/context.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/context.vala b/src/context.vala
index 97e243a..08a5baa 100644
--- a/src/context.vala
+++ b/src/context.vala
@@ -257,7 +257,7 @@ namespace HTTPSEverywhere {
                 if (cn->type != Xml.ElementType.ELEMENT_NODE || cn->name != "ruleset")
                     continue;
                 try {
-                    var rs = new Ruleset.from_xml(root);
+                    var rs = new Ruleset.from_xml(cn);
                     rulesets.@set(++id, rs);
                     foreach (Target target in rs.targets) {
                         if (this.targets.has_key(target)) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]