[Rt-commit] rt branch 5.0/whitelist-webpath-search-results created. rt-5.0.4-14-g7807206bb2

BPS Git Server git at git.bestpractical.com
Fri May 19 17:27:57 UTC 2023


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/whitelist-webpath-search-results has been created
        at  7807206bb264ab5207d187e8ba849acc31137c57 (commit)

- Log -----------------------------------------------------------------
commit 7807206bb264ab5207d187e8ba849acc31137c57
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Fri May 19 11:05:52 2023 -0400

    Support WebPath configuration when checking ResultPage
    
    Previously the ResultPage check with WebPath set would
    still allow searches to work, but RT would log a warning
    each time. Add support for WebPath to correctly check
    ResultPage args.

diff --git a/lib/RT/Interface/Web.pm b/lib/RT/Interface/Web.pm
index 0995a9e12a..e1da8866e7 100644
--- a/lib/RT/Interface/Web.pm
+++ b/lib/RT/Interface/Web.pm
@@ -326,7 +326,7 @@ sub HandleRequest {
                 $passed = 1 if $ARGS->{ResultPage} =~ $item;
             }
             else {
-                $passed = 1 if $ARGS->{ResultPage} eq $item;
+                $passed = 1 if $ARGS->{ResultPage} eq RT->Config->Get('WebPath') . $item;
             }
             last if $passed;
         }

-----------------------------------------------------------------------


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list