aboutsummaryrefslogtreecommitdiffstats
path: root/mod/page.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-13 17:07:12 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-13 17:07:12 -0700
commit475dc7b686d6939d88c79dd58df1ff751356a922 (patch)
tree1271d12c627d8bd3826119df08e9d2c9477be3aa /mod/page.php
parent4ca06ebd79b5258c5cb6ccb0871d98c9180f91b2 (diff)
parentc82082d2bbb00294d62330d577dcdbc9ec6b9d1c (diff)
downloadvolse-hubzilla-475dc7b686d6939d88c79dd58df1ff751356a922.tar.gz
volse-hubzilla-475dc7b686d6939d88c79dd58df1ff751356a922.tar.bz2
volse-hubzilla-475dc7b686d6939d88c79dd58df1ff751356a922.zip
Merge branch 'master' of https://github.com/redmatrix/redmatrix
Conflicts: boot.php include/api.php include/enotify.php
Diffstat (limited to 'mod/page.php')
-rw-r--r--mod/page.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/page.php b/mod/page.php
index ad1862a7a..25b4d8888 100644
--- a/mod/page.php
+++ b/mod/page.php
@@ -35,7 +35,11 @@ function page_init(&$a) {
}
$channel_address = argv(1);
- $page_id = argv(2);
+
+ // The page link title was stored in a urlencoded format
+ // php or the browser may/will have decoded it, so re-encode it for our search
+
+ $page_id = urlencode(argv(2));
$u = q("select channel_id from channel where channel_address = '%s' limit 1",
dbesc($channel_address)
@@ -62,7 +66,6 @@ function page_init(&$a) {
intval(ITEM_WEBPAGE),
intval(ITEM_PDL)
);
-
if(! $r) {
// Check again with no permissions clause to see if it is a permissions issue