-
Notifications
You must be signed in to change notification settings - Fork 30
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
POST <html> from php curl comes escaped - deal with it receiver-side? #39
Comments
Yes, there's an annoying discrepancy that needs a fix, which is quite tricky phpList handles the content by duplicating the escaping somewhere. I haven't found it yet. The complication will be to make sure that a campaign added by phpList UI and phpList API are entered the same way. This is currently not the case, IIRC. |
(I dont know if the Email reply worked correctly, so this could become duplicated) Hi Michiel Is is not that the API provides the case that finished Code is inserted (which is usually not the case with the GUI), So I suggest it's more about handling the "special case", for example by giving a switch in the REST to tell the API to clean up? Best |
Hi Michiel Are you sure the core functionality is the issue? Is is not that the API provides the case that finished Code is inserted (which is usually not the case with the GUI), So I suggest it's more about handling the "special case", for example by giving a switch in the REST to tell the API to clean up? Best
|
No, I'm not sure. It would need digging deeper to find out. Unfortunately I don't currently have the time for that. |
admin/inc/magic_quotes.php - looks like this "experiment" is bad |
as temporary solution remove slashes in admin/plugins/restapi/includes/campaigns.php:102 $stmt->bindParam('message', stripslashes($_REQUEST['message']), PDO::PARAM_STR); |
Hi
I'm using the API to build a submit connector for inserting whole
<html>
content withcampaignAdd()
to phplist.It seems to me that the sender's php curl must escape all quotes. So receiver-side the code is not valid as-is.
In the API (include/campaigns.php) i need to do:
stripslashes($_REQUEST['message'])
Is this something to consider for you DEVs, or am I only doing a bad approach?
Thanks
Best
Manu
The text was updated successfully, but these errors were encountered: