Re: com web/master: Allow to search notes within a specfified section: include/functions.inc manage/user-notes.php
| From: | Kalle Sommer Nielsen | Date: | Tue, 06 Dec 2016 01:26:43 +0000 |
| Subject: | Re: com web/master: Allow to search notes within a specfified section: include/functions.inc manage/user-notes.php | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-25400@lists.php.net to get a copy of this message | ||
Hi Maciej
2016-12-04 7:25 GMT+01:00 Maciej Sobaczewski <sobak@php.net>:
> +<?php
> + if (isset($_GET['query'])) {
> + header('Location: user-notes.php?keyword=sect:' . $_GET['query']);
> + exit;
> + }
This wouldn't work as we do not have output buffering started using
ob_start() (I don't assume master runs with output_buffering directive
in php.ini customized). Also we should filter $_GET['query'] here.
--
regards,
Kalle Sommer Nielsen
kalle@php.net