Author Topic: Output Compression Level - field not validated - can crash abantecart  (Read 2575 times)

Offline raj@ad4u.co.uk

  • Newbie
  • *
  • Posts: 24
  • Karma: +5/-0
    • View Profile
Hi,

The "Output Compression Level" is not validated on input and can cause the system  to crash with a blank screen if an incorrect value is entered. Then there is no way to load the shop or admin.

To resolve the issue you need to edit "/core/lib/response.php"

LINE
132   $this->addHeader('Content-Encoding: ' . $encoding);
133       $level = 9;  <-- ADD THIS TEMPORARY LINE TO GET THE SYSTEM WORKING
134   return gzencode($data, (int)$level);
134   }

Once you get back to admin enter a correct value for "Output Compression Level" and remove the above added line.

Hope this helps.

Raj.

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Output Compression Level - field not validated - can crash abantecart
« Reply #1 on: April 11, 2018, 08:41:57 PM »
Welcome to AbanteCart Raj and thank you for sharing.

I think most of a web servers can manage the compression now. This feature might be outdated.
I will check and will do updates
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

 

Powered by SMFPacks Social Login Mod