[freeside-commits] freeside/rt/lib/RT/Interface Web.pm, 1.3.4.4, 1.3.4.5

Ivan,,, ivan at wavetail.420.am
Fri Jul 15 13:28:19 PDT 2011


Update of /home/cvs/cvsroot/freeside/rt/lib/RT/Interface
In directory wavetail.420.am:/tmp/cvs-serv31536/lib/RT/Interface

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	Web.pm 
Log Message:
fix 403 errors pulling up RTx-Statistics charts, RT#13546

Index: Web.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/lib/RT/Interface/Web.pm,v
retrieving revision 1.3.4.4
retrieving revision 1.3.4.5
diff -u -w -d -r1.3.4.4 -r1.3.4.5
--- Web.pm	20 Apr 2011 17:46:58 -0000	1.3.4.4
+++ Web.pm	15 Jul 2011 20:28:16 -0000	1.3.4.5
@@ -438,7 +438,11 @@
               autohandler | # requesting this directly is suspicious
               l           ) # loc component
             ( $ | / ) # trailing slash or end of path
-        }xi) {
+        }xi
+        && $path !~ m{ /RTx/Statistics/\w+/Elements/Chart }xi
+      )
+    {
+            warn "rejecting private component $path\n";
             $m->abort(403);
     }
 
@@ -2300,7 +2304,6 @@
     return ( _load_container_object( $obj_type, $obj_id ), $search_id );
 }
 
-package RT::Interface::Web;
 RT::Base->_ImportOverlays();
 
 1;



More information about the freeside-commits mailing list