Support

Home Forums Event Espresso Premium Apostrophe adding backslashes to "organization street 1" in general setting

Apostrophe adding backslashes to "organization street 1" in general setting

Posted: January 20, 2014 at 6:19 pm

Viewing 5 reply threads


Allan Browning

January 20, 2014 at 6:19 pm

We have an Apostrophe in the name of our street and each time we make changes to the general settings it adds an extra “\” to the address in front of the Apostrophe


Allan Browning

January 20, 2014 at 6:21 pm

Sorry : using 3.1.36.2.P with wordpress 3.8


Allan Browning

January 20, 2014 at 6:24 pm

The slash shows on the address in the ticket but does not show in the Conformation Email.

On a side note <br/> tags show in the address in the PDF invoice. Any ideas?


Dean

January 21, 2014 at 1:03 am

Hi Allan,

Thanks for reporting the backslash issue. I will raise a developer ticket to fix this.

If you want to do a temporary fix yourself, then you will need to edit event-espresso/includes/organization_config.php and replace lines 8 to 12 with the following

		$org_options['organization_street1'] = isset($_POST['org_street1']) && !empty($_POST['org_street1']) ? stripslashes_deep($_POST['org_street1']) : '';
		$org_options['organization_street2'] = isset($_POST['org_street2']) && !empty($_POST['org_street2']) ? stripslashes_deep($_POST['org_street2']) : '';
		$org_options['organization_city'] = isset($_POST['org_city']) && !empty($_POST['org_city']) ? stripslashes_deep($_POST['org_city']) : '';
		$org_options['organization_state'] = isset($_POST['org_state']) && !empty($_POST['org_state']) ? stripslashes_deep($_POST['org_state']) : '';
		$org_options['organization_zip'] = isset($_POST['org_zip']) && !empty($_POST['org_zip']) ? stripslashes_deep($_POST['org_zip']) : '';

The br tags can be removed by going to the Payment Settings > Invoice and removing them. They should not re-appear in future releases.


Allan Browning

January 23, 2014 at 7:32 pm

Thanks Dean.


Dean

January 24, 2014 at 4:57 am

No problem, thank you for letting us know about it!

Viewing 5 reply threads

The support post ‘Apostrophe adding backslashes to "organization street 1" in general setting’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso