Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 316953 Details for
Bug 332369
icinga-web-1.0.2.ebuild (New Ebuild)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
icinga-web-1.7.1-disable-compression.patch
icinga-web-1.7.1-disable-compression.patch (text/plain), 3.05 KB, created by
Thomas Oettli
on 2012-07-02 07:42:59 UTC
(
hide
)
Description:
icinga-web-1.7.1-disable-compression.patch
Filename:
MIME Type:
Creator:
Thomas Oettli
Created:
2012-07-02 07:42:59 UTC
Size:
3.05 KB
patch
obsolete
>--- app/modules/AppKit/config/module.xml.in >+++ app/modules/AppKit/config/module.xml.in >@@ -29,6 +29,8 @@ > <setting name="squishloader"> > <ae:parameter name="cache_dir">%core.cache_dir%/Squished</ae:parameter> > <ae:parameter name="use_caching">@flag_caching@</ae:parameter> >+ <ae:parameter name="use_gzcompress">false</ae:parameter> >+ <ae:parameter name="gzcompress_level">2</ae:parameter> > </setting> > > <setting name="user_preferences_default"> >--- app/modules/AppKit/validate/Widgets/SquishLoader.xml >+++ app/modules/AppKit/validate/Widgets/SquishLoader.xml >@@ -5,12 +5,18 @@ > parent="%core.module_dir%/AppKit/config/validators.xml" > > > <ae:configuration> >- > <validators> > <validator class="string" name="IfNoneMatch" source="headers" required="false"> > <argument>IF_NONE_MATCH</argument> > </validator> >- >+ >+ <validator class="string" name="accept_encoding" source="headers" required="true"> >+ <argument>ACCEPT_ENCODING</argument> >+ >+ <errors> >+ <error>Could not validate HTTP_REFERER</error> >+ </errors> >+ </validator> > </validators> > </ae:configuration> > </ae:configurations> >--- app/modules/AppKit/views/Widgets/SquishLoaderSuccessView.class.php >+++ app/modules/AppKit/views/Widgets/SquishLoaderSuccessView.class.php >@@ -45,8 +45,31 @@ class AppKit_Widgets_SquishLoaderSuccessView extends AppKitBaseView { > return ""; > } > >- ob_start("ob_gzhandler"); >- >+ $options = AgaviConfig::get('modules.appkit.squishloader', array()); >+ $gz_level = isset($options['gzcompress_level']) ? >+ (integer)$options['gzcompress_level'] : 3; >+ $gz_use = isset($options['use_gzcompress']) ? >+ (boolean)$options['use_gzcompress'] : false; >+ >+ if ($gz_use === true) { >+ >+ $encoding = $rd->getHeader('ACCEPT_ENCODING', false); >+ >+ if (strpos($encoding, 'gzip') !== false) { >+ $encoding = 'gzip'; >+ } elseif(strpos($encoding, 'x-gzip') !== false) { >+ $encoding = 'x-gzip'; >+ } >+ >+ if ($encoding !== false) { >+ header('Content-Encoding: '. $encoding); >+ $l = strlen($content); >+ $content = gzcompress($content, 4); >+ $content = substr($content, 0, $l); >+ return "\x1f\x8b\x08\x00\x00\x00\x00\x00". $content; >+ } >+ } >+ > return $content; > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 332369
:
242497
|
242499
|
242501
|
250761
|
250763
|
250765
|
250767
|
251939
|
252903
|
262761
|
268605
|
272839
|
284483
|
285771
|
285773
|
287007
|
299239
|
303069
|
304631
|
316951
| 316953