]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/exceptions/main/class_InvalidCommandException.php
Comment header fixed
[shipsimu.git] / inc / classes / exceptions / main / class_InvalidCommandException.php
index af30b8ccaf6bc70b8cdae2822b6f2ec8d4f5e7ca..27b676623c9903574db3ce3df78dc3015572ee06 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * This exception is thrown when a command is invalid
  *
- * @author             Roland Haeder <webmaster@mxchange.org>
+ * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
@@ -34,7 +34,7 @@ class InvalidCommandException extends FrameworkException {
                $message = sprintf("[%s:%d] Invalid command <u>%s</u> detected.",
                        $msgArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1]
+                       htmlentities(strip_tags($msgArray[1]), ENT_QUOTES)
                );
 
                // Call parent constructor