diff options
| author | 2023-04-07 00:13:49 +0200 | |
|---|---|---|
| committer | 2023-04-07 00:13:49 +0200 | |
| commit | 6c01e4e7d6c177ac345c826059e585bffdd1d517 (patch) | |
| tree | 45bd8ee233a306881ed81447a3f56ca224fed538 /app/layout/aside_feed.phtml | |
| parent | 2118448133e327294ad2b69ed8736bc29879103d (diff) | |
Use typed access to request parameters (#5267)
* Use typed access to request parameters
This was a big source of mixed datatypes in many places
* Fix notifications
* Fix bookmarkAction
Diffstat (limited to 'app/layout/aside_feed.phtml')
| -rw-r--r-- | app/layout/aside_feed.phtml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/layout/aside_feed.phtml b/app/layout/aside_feed.phtml index 0de0cadf6..4745b6273 100644 --- a/app/layout/aside_feed.phtml +++ b/app/layout/aside_feed.phtml @@ -8,8 +8,8 @@ $class = ' state_unread'; } - $state_filter_manual = Minz_Request::param('state', ''); - if ($state_filter_manual != '') { + $state_filter_manual = Minz_Request::paramString('state'); + if ($state_filter_manual !== '') { $state_filter_manual = '&state=' . $state_filter_manual; } ?> @@ -164,8 +164,8 @@ <?php } ?> <li class="item link website"><a target="_blank" rel="noreferrer" href="http://example.net/"><?= _t('gen.action.see_website') ?></a></li> <?php if (FreshRSS_Auth::hasAccess()) { - $get = Minz_Request::param('get'); - if (!$get) { + $get = Minz_Request::paramString('get'); + if ($get === '') { $url = _url('subscription', 'feed', 'id', '------', 'from', $actual_view); } else { $url = _url('subscription', 'feed', 'id', '------', 'get', $get, 'from', $actual_view); |
