[Bps-public-commit] RT-BugTracker-Public branch, master, updated. 1.05

Alex Vandiver alexmv at bestpractical.com
Tue Jul 19 05:20:09 EDT 2016


The branch, master has been updated
       via  66987baace6f3884b19b18f96b5cc38aca86da10 (commit)
       via  4c67c1ffac62ecbd5a0c59fb0feeeb6becb3ff48 (commit)
      from  947225f63da87cf20dd539fc0f7447414c1dcd36 (commit)

Summary of changes:
 Changes                     |  4 ++++
 MANIFEST                    |  1 -
 META.yml                    |  2 +-
 lib/RT/BugTracker/Public.pm | 16 +++++++++++++++-
 4 files changed, 20 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit 4c67c1ffac62ecbd5a0c59fb0feeeb6becb3ff48
Author: Alex Vandiver <alex at chmrr.net>
Date:   Tue Jul 19 02:16:46 2016 -0700

    Whitelist all of the search endpoints from CSRF protection

diff --git a/lib/RT/BugTracker/Public.pm b/lib/RT/BugTracker/Public.pm
index bc92811..6550835 100644
--- a/lib/RT/BugTracker/Public.pm
+++ b/lib/RT/BugTracker/Public.pm
@@ -165,6 +165,20 @@ sub RedirectToPublic {
     return undef;
 }
 
+require RT::Interface::Web;
+%RT::Interface::Web::is_whitelisted_component = (
+    %RT::Interface::Web::is_whitelisted_component,
+    "/Public/Browse.html"            => 1,
+    "/Public/Dist/BeginsWith.html"   => 1,
+    "/Public/Dist/Browse.html"       => 1,
+    "/Public/Dist/ByMaintainer.html" => 1,
+    "/Public/Dist/Display.html"      => 1,
+    "/Public/Dist/bugs.tsv"          => 1,
+    "/Public/Search/Results.html"    => 1,
+    "/Public/Search/Simple.html"     => 1,
+    "/Public/index.html"             => 1,
+);
+
 =head1 AUTHOR
 
 Best Practical Solutions, LLC E<lt>modules at bestpractical.comE<gt>

commit 66987baace6f3884b19b18f96b5cc38aca86da10
Author: Alex Vandiver <alex at chmrr.net>
Date:   Tue Jul 19 02:18:16 2016 -0700

    Version 1.05 releng

diff --git a/Changes b/Changes
index f8d2ea2..3387741 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,7 @@
+1.05 2016-07-19
+ - Packaging updates
+ - Whitelist all query endpoints from CSRF protection
+
 1.00 2014-12-15
  - Packaging and documentation updates
 
diff --git a/MANIFEST b/MANIFEST
index af8363a..40c120d 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -44,7 +44,6 @@ inc/Module/Install/RTx.pm
 inc/Module/Install/RTx/Runtime.pm
 inc/Module/Install/Win32.pm
 inc/Module/Install/WriteAll.pm
-inc/unicore/Name.pm
 inc/YAML/Tiny.pm
 lib/RT/BugTracker/Public.pm
 Makefile.PL
diff --git a/META.yml b/META.yml
index c1c317e..dd4d8c7 100644
--- a/META.yml
+++ b/META.yml
@@ -23,7 +23,7 @@ requires:
   perl: 5.8.3
 resources:
   license: http://opensource.org/licenses/gpl-license.php
-version: '1.00'
+version: '1.05'
 x_module_install_rtx_version: '0.38'
 x_requires_rt: 4.0.0
 x_rt_too_new: 4.2.0
diff --git a/lib/RT/BugTracker/Public.pm b/lib/RT/BugTracker/Public.pm
index 6550835..1857ddb 100644
--- a/lib/RT/BugTracker/Public.pm
+++ b/lib/RT/BugTracker/Public.pm
@@ -53,7 +53,7 @@ use warnings;
 package RT::BugTracker::Public;
 use URI::Escape qw/ uri_escape /;
 
-our $VERSION = '1.00';
+our $VERSION = '1.05';
 
 RT->AddJavaScript("bugtracker-public.js");
 RT->AddStyleSheets("bugtracker-public.css");

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


More information about the Bps-public-commit mailing list