r2030 + bugfix: escape encoded log message array properly
[racktables] / inc / code.php
index 124a254300db194f2edcbe5aed26f472065e62a8..c841c91d297ec8ca9a480b49db3cf5011319cd3f 100644 (file)
@@ -154,7 +154,7 @@ function getLexemsFromRackCode ($text)
                                                $ret[] = array ('type' => 'LEX_TAG', 'load' => $buffer);
                                                $newstate = 'ESOTSM';
                                                break;
-                                       case (mb_ereg ('[[:alnum:]\. _-]', $char) > 0):
+                                       case (mb_ereg ('[[:alnum:]\. _-~]', $char) > 0):
                                                $buffer .= $char;
                                                break;
                                        default:
@@ -185,7 +185,7 @@ function getLexemsFromRackCode ($text)
                                                $ret[] = array ('type' => 'LEX_PREDICATE', 'load' => $buffer);
                                                $newstate = 'ESOTSM';
                                                break;
-                                       case (mb_ereg ('[[:alnum:]\. _-]', $char) > 0):
+                                       case (mb_ereg ('[[:alnum:]\. _-~]', $char) > 0):
                                                $buffer .= $char;
                                                break;
                                        default: