This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "quickfw".
The branch, master has been updated
via a117522122e16aab3209c698a5a4a5430eba2acf (commit)
from 132b644d399bc4915e0b208795f7ab02b7423b8c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a117522122e16aab3209c698a5a4a5430eba2acf
Author: Ivan1986 <iva...@li...>
Date: Fri Jul 16 16:04:40 2010 +0400
Добавил эскейп в утилиты
diff --git a/lib/utils.php b/lib/utils.php
index 1248a4c..b6bce92 100644
--- a/lib/utils.php
+++ b/lib/utils.php
@@ -313,4 +313,12 @@ function preg($pattern, $subject, $all = true)
return $m;
}
+/**
+ * Функции ескейпинга в нужной кодировке
+ *
+ * @param string $s Исходная строка
+ * @return string htmlspecialchars($s, ENT_QUOTES, $encoding)
+ */
+function esc($s) { return htmlspecialchars($s, ENT_QUOTES, QFW::$config['host']['encoding']); }
+
?>
-----------------------------------------------------------------------
Summary of changes:
lib/utils.php | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
hooks/post-receive
--
quickfw
|