From 9b03a9b54499eef80458f77ea3465599624a97fe Mon Sep 17 00:00:00 2001 From: henoheno Date: Mon, 24 Jan 2011 23:46:45 +0900 Subject: [PATCH 1/1] htmlsc(): Just sugar for htmlspecialchars(), and a foundation --- spam/checker.php | 14 +++++++------- spam/spam.php | 4 ++-- spam/spam_util.php | 14 +++++++++++++- 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/spam/checker.php b/spam/checker.php index a7ad720..450276c 100644 --- a/spam/checker.php +++ b/spam/checker.php @@ -1,5 +1,5 @@ '; echo '$progress:' . "\n"; - echo htmlspecialchars(var_export($progress, TRUE)); + echo htmlsc(var_export($progress, TRUE)); echo ''; } } @@ -159,7 +159,7 @@ if ($pickup) { $results = uri_pickup_normalize($results); $results = uri_pickup_normalize_pathfile($results); echo '$results:' . "\n"; - echo htmlspecialchars(var_export($results, TRUE)); + echo htmlsc(var_export($results, TRUE)); echo ''; } ?> diff --git a/spam/spam.php b/spam/spam.php index ac41338..264c03c 100644 --- a/spam/spam.php +++ b/spam/spam.php @@ -1,5 +1,5 @@ ' . "\n"); - echo htmlspecialchars(var_export($data, TRUE)); + echo htmlsc(var_export($data, TRUE)); echo('' . "\n"); break; }; diff --git a/spam/spam_util.php b/spam/spam_util.php index 85bb18f..083f4cf 100644 --- a/spam/spam_util.php +++ b/spam/spam_util.php @@ -1,5 +1,5 @@