Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e107 corrupts form-submitted array values when GET method is used. #5005

Closed
CaMer0n opened this issue Jun 6, 2023 · 0 comments
Closed

e107 corrupts form-submitted array values when GET method is used. #5005

CaMer0n opened this issue Jun 6, 2023 · 0 comments
Assignees
Labels
type: bug A problem that should not be happening
Milestone

Comments

@CaMer0n
Copy link
Member

CaMer0n commented Jun 6, 2023

Bug Description

Using GET instead of POST to submit a form with a field that contains array values, returns values in the query using the characters [ and ] . e107 incorrectly interprets this data to be an "e_MENU" debug command and corrupts the value of $_GET.

How to Reproduce

Steps to reproduce the behavior:

  1. Add this query to an e107 URL: mode=main&action=custom&other[key]=1
  2. Add var_dump($_GET); after class2.php

Result

$_GET has a value of =1

Expected Behavior

$_GET value should contain all the query values for mode, action and other.

@CaMer0n CaMer0n added the type: bug A problem that should not be happening label Jun 6, 2023
@CaMer0n CaMer0n added this to the e107 2.3.3 milestone Jun 6, 2023
@CaMer0n CaMer0n self-assigned this Jun 6, 2023
@CaMer0n CaMer0n closed this as completed in c2bc635 Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A problem that should not be happening
Projects
None yet
Development

No branches or pull requests

1 participant