Skip to content

Mailing URL parameter Sanitation fails #89

Description

@pbatroff

When using the view in Browser feature with CiviProxy, the parameter sanitation fails. it looks like the id parameter changed from Integer to String (or more likely a hex value). This is an example I had in a test Mailing:

https://PROXY.URL/mailing/mail.php?reset=1&**id=b906699be058c01c**&cid=36880&cs=2f4b5a4e346f2640d74aad11c6b36075_1757690764_168

In

$valid_parameters = array( 'id' => 'int', 'cid' => 'int', 'cs' => 'string' );
the parameter ID needs to be Integers, which makes the feature fail with "Resource not found".

I would suggest to change the validation to

$valid_parameters = array(  'id'   => 'string', 'cid' => 'int', 'cs' => 'string'  );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions