From c3c202d650506ea3ed3ba9bdb92aae0b065d5e47 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 12 May 2015 22:57:55 -0700 Subject: issue #187 --- mod/page.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mod/page.php') diff --git a/mod/page.php b/mod/page.php index ad1862a7a..b80982ae1 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) -- cgit v1.2.3 From c82082d2bbb00294d62330d577dcdbc9ec6b9d1c Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 13 May 2015 16:27:04 -0700 Subject: restrict webpage list to undeleted items --- mod/page.php | 1 - 1 file changed, 1 deletion(-) (limited to 'mod/page.php') diff --git a/mod/page.php b/mod/page.php index b80982ae1..25b4d8888 100644 --- a/mod/page.php +++ b/mod/page.php @@ -66,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 -- cgit v1.2.3