CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • Extra escaping of quotation marks in WordPress
Pages: [1]

Author Topic: Extra escaping of quotation marks in WordPress  (Read 3019 times)

gnott

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: WordPress
  • MySQL version: 5.1
  • PHP version: 5.3
Extra escaping of quotation marks in WordPress
February 15, 2012, 09:11:01 am
CiviCRM 4.1 Beta3 running on WordPress adds extra escaping of single quotation marks and double quotation marks. PHP has magic quotes off on my example, and this can be reproduced on the sandbox site.

A previous example of this issue:
http://forum.civicrm.org/index.php/topic,22834.0.html

To reproduce, enter " or ' into a field and save it. Examples of fields:
  • Contact detail fields
  • From Email Address Options
  • Option Groups fields
  • Re-using a previous CiviMail mailing

The latter example, if you click on the Report of a sent mailing, the HTML message starts <table bgcolor=\"#f4fff4\"... Attached example of what happens re-using a mailing.

The Drupal version of CiviCRM 4.1 Beta3 does not do this.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Extra escaping of quotation marks in WordPress
February 15, 2012, 10:14:09 am

can you please file an issue for this. We'll fix it for 4.1.1

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Extra escaping of quotation marks in WordPress
February 15, 2012, 10:28:02 am

argh, WP decides to take on PHP's role, why oh why :(

http://wordpress.org/support/topic/does-wordpress-escapeadd-slashes-to-_request-fields-in-a-plugin

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • Extra escaping of quotation marks in WordPress

This forum was archived on 2017-11-26.