summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2023-03-17 15:17:17 +0100
committerUrban Müller2023-03-17 15:21:02 +0100
commit0d0140c0de98de28106610e58aa8bebc07566a85 (patch)
treef90f9700d89d121bb96debdcd7ee50d9bb1c21f6
parent49429cfe68d8d576d6c0a0fc954e57b452dd5d41 (diff)
downloaditools-0d0140c0de98de28106610e58aa8bebc07566a85.tar.gz
itools-0d0140c0de98de28106610e58aa8bebc07566a85.tar.bz2
itools-0d0140c0de98de28106610e58aa8bebc07566a85.zip
typo
-rw-r--r--it_debug.class2
-rw-r--r--it_pipe.class2
2 files changed, 2 insertions, 2 deletions
diff --git a/it_debug.class b/it_debug.class
index 5e89385..f5122ea 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -190,7 +190,7 @@ static function dump($args, $p = [])
$item = "$red$item$nored";
if ($p['html'])
- $item = it::replace('[\x00-\x08\x0b-\x0c\x0e-\x1f]' => "", preg_replace("#(https?:)?//[^\s'\"]+#", "<a href='\$0'>\$0</a>", strtr($item, $htmlspecialchars)), 'utf8' => false); # htmlspecialchars() does not like bad utf8
+ $item = it::replace(['[\x00-\x08\x0b-\x0c\x0e-\x1f]' => ""], preg_replace("#(https?:)?//[^\s'\"]+#", "<a href='\$0'>\$0</a>", strtr($item, $htmlspecialchars)), ['utf8' => false]); # htmlspecialchars() does not like bad utf8
if (preg_match('/^[\'"]/', $var))
$r .= "$item ";
diff --git a/it_pipe.class b/it_pipe.class
index 0ffb7af..ac1b987 100644
--- a/it_pipe.class
+++ b/it_pipe.class
@@ -12,7 +12,7 @@ class it_pipe implements Iterator
* Creates a pipe object from input. Named arguments:
* $p['fn'] filename to read lines from
* $p['cmd'] cmd to read lines from
- * $p['data'] data to read line from. either array of lines without newslines or string
+ * $p['data'] data to read line from. either array of lines without newlines or string
*/
function __construct($p = array())
{