From eac204b57cb5fc753e83475b9ae2de347676a955 Mon Sep 17 00:00:00 2001 From: petko Date: Thu, 13 Jun 2024 07:19:14 +0000 Subject: Enable ?action=source&highlight=1 (cont.) git-svn-id: svn://pmwiki.org/pmwiki/trunk@4721 524c5546-5005-0410-9a3e-e25e191bd360 --- pmwiki.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pmwiki.php') diff --git a/pmwiki.php b/pmwiki.php index 133a8c8b..1bcba98b 100644 --- a/pmwiki.php +++ b/pmwiki.php @@ -2868,7 +2868,7 @@ function HandleSource($pagename, $auth = 'read') { $page = RetrieveAuthPage($pagename, $auth, true, READPAGE_CURRENT); if (!$page) Abort("?cannot source $pagename"); - if (@$_REQUEST['highlight']) { + if (intval(@$_REQUEST['highlight'])) { $text = "
" 
       . str_replace('$', '$', PHSC(@$page['text'])).'
'; -- cgit v1.2.3