aboutsummaryrefslogtreecommitdiff
path: root/mod/pages
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-10-19 09:47:11 +0200
committerSem <sembrestels@riseup.net>2012-10-19 09:47:11 +0200
commit80ca3d447737a679f773cbea7e788ee190abea69 (patch)
tree62bd6ec58b5fc8ad02bd529d187591659dc39b65 /mod/pages
parent9a4ed2014e9880130c1bbc52bb980e44a488bad9 (diff)
parentd134beadb79fcc90a75bda8bbcbfb9987b27470c (diff)
downloadelgg-80ca3d447737a679f773cbea7e788ee190abea69.tar.gz
elgg-80ca3d447737a679f773cbea7e788ee190abea69.tar.bz2
Merge branch '1.8' of git://github.com/Elgg/Elgg into lorea-preprod
Diffstat (limited to 'mod/pages')
-rw-r--r--mod/pages/actions/pages/edit.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/pages/actions/pages/edit.php b/mod/pages/actions/pages/edit.php
index a32e4a4ba..fe5754d76 100644
--- a/mod/pages/actions/pages/edit.php
+++ b/mod/pages/actions/pages/edit.php
@@ -8,9 +8,10 @@
$variables = elgg_get_config('pages');
$input = array();
foreach ($variables as $name => $type) {
- $input[$name] = get_input($name);
if ($name == 'title') {
- $input[$name] = strip_tags($input[$name]);
+ $input[$name] = htmlspecialchars(get_input($name, '', false), ENT_QUOTES, 'UTF-8');
+ } else {
+ $input[$name] = get_input($name);
}
if ($type == 'tags') {
$input[$name] = string_to_tag_array($input[$name]);