]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixing markup output
authorJosh <jrosenba@cisco.com>
Fri, 3 Oct 2014 14:32:19 +0000 (09:32 -0500)
committerJosh <jrosenba@cisco.com>
Fri, 3 Oct 2014 14:32:19 +0000 (09:32 -0500)
src/helpers/markup.cc
src/managers/module_manager.cc

index be463b365c9632ce6c58b63f88b0581fb097ccf3..1289819b45e76b2659edc196d1b048b4cb8ebd43 100644 (file)
@@ -53,7 +53,7 @@ const string& Markup::sanitize(const char* const c)
 
 const string& Markup::sanitize(const string& s)
 {
-    const char* const asciidoc_chars = "~*<>^'";
+    const char* const asciidoc_chars = "*<>^'";
     static string m;
     m.clear();
     m += s;
index cf6fb7fe1291e577f49cd20b3b5e025f77490104..62ea88683675d2942ccb5a8bd682249c5ad18c78 100644 (file)
@@ -249,12 +249,12 @@ static const Parameter* get_params(const string& sfx, const Parameter* p)
         if ( p[0].name && !p[1].name )
             return p;
         else
-               new_fqn = sfx;
+            new_fqn = sfx;
     }
     else
-       {
+    {
         new_fqn = sfx.substr(pos + 1);
-       }
+    }
 
     string name = new_fqn.substr(0, new_fqn.find_first_of('.'));
     while ( p->name && name != p->name )
@@ -274,6 +274,8 @@ static const Parameter* get_params(const string& sfx, const Parameter* p)
             const Parameter* tmp_p =
                 reinterpret_cast<const Parameter*>(p->range);
 
+            // FIXIT -- this will fail if we are opening a
+            // a list with only one Parameter
             if ( tmp_p[0].name && !tmp_p[1].name )
                 return tmp_p;
         }