aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-09-22 12:02:21 +0000
committerMario <mario@mariovavti.com>2022-09-22 12:02:21 +0000
commitf220cf3173118da3ed02e5c7e2f9d36069ba644a (patch)
treea513c06c1519c838ba4457aae6b876339c8c7b45
parent725359b1aaac2db3d06e74e6b7caebe7f75ce7c1 (diff)
downloadvolse-hubzilla-f220cf3173118da3ed02e5c7e2f9d36069ba644a.tar.gz
volse-hubzilla-f220cf3173118da3ed02e5c7e2f9d36069ba644a.tar.bz2
volse-hubzilla-f220cf3173118da3ed02e5c7e2f9d36069ba644a.zip
fix issue #1687
-rw-r--r--Zotlabs/Module/Item.php4
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)));
}