Permalink
Browse files

sanitized debug messages with hsc()

  • Loading branch information...
1 parent 98dc2c5 commit e66a9ce5e8e61a23a4cd58d164ee58d37f118a47 @lupo49 committed Nov 4, 2010
Showing with 6 additions and 6 deletions.
  1. +6 −6 syntax.php
View
@@ -207,13 +207,13 @@ function _showDebugMsg ($msg) {
}
return ;
}
-
+
$this->_putNewLine () ;
switch ($this->rdrMode) {
case 'xhtml':
$this->_put (DOKU_LF . "<span style=\"color:red;\">~~") ;
- $this->_put (DIR_PLUGIN_PATTERN . "~~: " . $msg . "</span>") ;
+ $this->_put (DIR_PLUGIN_PATTERN . "~~: " . hsc($msg) . "</span>") ;
break ;
case 'latex':
$this->_put (DOKU_LF . "~~") ;
@@ -410,7 +410,7 @@ function _parseColumnNames () {
} else {
$this->cols = Array ("page") ;
}
-
+
if (count ($this->cols) == 0) {
$cols [] = "page" ;
$cols [] = "desc" ;
@@ -674,7 +674,7 @@ function _parseOptions ($data) {
$flags = trim ($data, '~') ;
$flags = substr ($flags, strlen (DIR_PLUGIN_PATTERN)) ;
$flags = trim ($flags) ;
-
+
$this->_showDebugMsg ("specified arguments=" . $flags) ;
if (
@@ -1289,10 +1289,10 @@ function _put ($data) {
if ($data == NULL || $data == '')
return ;
-
+
switch ($this->rdrMode) {
case 'xhtml':
- $this->rdr->doc .= $data ;
+ $this->rdr->doc .= $data;
break ;
case 'latex':
$this->rdr->put ($data) ;

0 comments on commit e66a9ce

Please sign in to comment.