diff options
author | Mario <mario@mariovavti.com> | 2022-09-22 12:02:21 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-09-22 12:02:21 +0000 |
commit | f220cf3173118da3ed02e5c7e2f9d36069ba644a (patch) | |
tree | a513c06c1519c838ba4457aae6b876339c8c7b45 /Zotlabs | |
parent | 725359b1aaac2db3d06e74e6b7caebe7f75ce7c1 (diff) | |
download | volse-hubzilla-f220cf3173118da3ed02e5c7e2f9d36069ba644a.tar.gz volse-hubzilla-f220cf3173118da3ed02e5c7e2f9d36069ba644a.tar.bz2 volse-hubzilla-f220cf3173118da3ed02e5c7e2f9d36069ba644a.zip |
fix issue #1687
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Item.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index e1ba2b2f0..588391843 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -387,7 +387,7 @@ class Item extends Controller { $categories = ((x($_REQUEST, 'category')) ? escape_tags($_REQUEST['category']) : ''); $webpage = ((x($_REQUEST, 'webpage')) ? intval($_REQUEST['webpage']) : 0); $item_obscured = ((x($_REQUEST, 'obscured')) ? intval($_REQUEST['obscured']) : 0); - $pagetitle = ((x($_REQUEST, 'pagetitle')) ? escape_tags(urlencode($_REQUEST['pagetitle'])) : ''); + $pagetitle = ((x($_REQUEST, 'pagetitle')) ? escape_tags($_REQUEST['pagetitle']) : ''); $layout_mid = ((x($_REQUEST, 'layout_mid')) ? escape_tags($_REQUEST['layout_mid']) : ''); $plink = ((x($_REQUEST, 'permalink')) ? escape_tags($_REQUEST['permalink']) : ''); $obj_type = ((x($_REQUEST, 'obj_type')) ? escape_tags($_REQUEST['obj_type']) : ACTIVITY_OBJ_NOTE); @@ -411,7 +411,7 @@ class Item extends Controller { } if ($pagetitle) { - $pagetitle = strtolower(URLify::transliterate($pagetitle)); + $pagetitle = str_replace('/', '-', strtolower(URLify::transliterate($pagetitle))); } |