Zend Framework

Query string params not accessible when bootstrapping via Apache ErrorDocument 404

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 1.10.4
  • Fix Version/s: 1.11.6
  • Component/s: Zend_Controller
  • Labels:
    None

Description

There's a small typo in Zend_Controller_Request_Apache404 that will prevent query string parameters (?foo=bar) from being accessible.

Seems that the two references to $_SERVER['REDIRECT_QUERYSTRING'] should instead be $_SERVER['REDIRECT_QUERY_STRING'].

Initially I thought this may have been an Apache version specific issue, but after googling for both REDIRECT_QUERY_STRING and REDIRECT_QUERYSTRING it appears that REDIRECT_QUERYSTRING has been a typo all along.

References to the correct REDIRECT_QUERY_STRING are made on http://httpd.apache.org/docs/2.2/custom-error.html

Thanks!

  1. Apache404.php.patch
    24/Apr/11 8:15 PM
    0.8 kB
    Kim Blomqvist
  2. Apache404Test.php.patch
    24/Apr/11 8:15 PM
    0.6 kB
    Kim Blomqvist

Issue Links

Activity

Hide
Kim Blomqvist added a comment -

Patch attached.

Show
Kim Blomqvist added a comment - Patch attached.
Hide
Ralph Schindler added a comment -

Fixed in trunk at r23987 and in release branch 1.11 at r23988

Show
Ralph Schindler added a comment - Fixed in trunk at r23987 and in release branch 1.11 at r23988

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: