Reset writer state if $ is not followed with {

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@903275 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/filter/ResourceFilteringWriter.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/filter/ResourceFilteringWriter.java
index ed38cdf..71ab158 100644
--- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/filter/ResourceFilteringWriter.java
+++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/filter/ResourceFilteringWriter.java
@@ -138,6 +138,7 @@
                 }
                 else
                 {
+                    state = STATE_NULL;
                     out.write( '$' );
                     out.write( c );
                 }
@@ -162,6 +163,7 @@
                     out.write( '\\' );
                 }
                 out.write( c );
+                break;
         }
     }