Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-3043

Gateway for Google Checkout shouldn't require register_globals

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: CiviContribute
    • Labels:
      None

      Description

      $HTTP_RAW_POST_DATA isn't set unless PHP registers globals. By default, PHP 5 does not register globals.

      A quick fix is adding the following to googleNotify.php before the first use of $HTTP_RAW_POST_DATA:
      $HTTP_RAW_POST_DATA = file_get_contents('php://input');

      I would also name it something other than $HTTP_RAW_POST_DATA to avoid confusion with the global variables of PHP's past.

      (It's possible – but unlikely – my notification issues were caused by a different problem, because I fixed several things at once.)

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              davidstrauss David Strauss
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 15 minutes
                15m
                Remaining:
                Remaining Estimate - 15 minutes
                15m
                Logged:
                Time Spent - Not Specified
                Not Specified