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) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Error when contribution page titles contain double quotes?
Pages: [1]

Author Topic: Error when contribution page titles contain double quotes?  (Read 824 times)

dkingofpa

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
Error when contribution page titles contain double quotes?
July 26, 2010, 08:37:29 am
Drupal 6.15
CiviCRM 3.1
Authorize.net payment processor

I get an error when I submit a live contribution page that has double quotes in its title.  For example:  This "title" will not work.  Strangely, this contribution page works when using the test-drive link.  The error text reads:

Payment Processor Error message
:9003:MD5 Verification failed

See attached image.  I haven't been able to find any similar issues documented.  As soon as I remove the double quotes, my contribution page worked.  At first I thought it might have been a smart-quotes issue since I copied and pasted the title from an email.  However, using plain text double quotes also cause the error.  Seems odd that we wouldn't be able to use double quotes in our titles.

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: Error when contribution page titles contain double quotes?
July 26, 2010, 09:47:51 am

your best bet would be to instrument the authorize.net payment processor code: CRM/Core/Payment/AuthorizeNet.php

and submit a patch to the file to handle quotes in the title. Authorize.net is a contributed processor maintained by the community

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

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Error when contribution page titles contain double quotes?
July 26, 2010, 10:30:56 am
Other option would be not to use MD5 option, that should solve this problem.

Kurund
Found this reply helpful? Support CiviCRM

dkingofpa

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
Re: Error when contribution page titles contain double quotes?
July 26, 2010, 10:38:07 am
@Kurund:  Wouldn't that be a security risk?  I thought the MD5 was there so you could verify that the request was actually from Authorize.net?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Error when contribution page titles contain double quotes?
July 26, 2010, 10:57:05 am
Quote
Wouldn't that be a security risk?  I thought the MD5 was there so you could verify that the request was actually from Authorize.net?
Don't know much about Authorize.net, you should check with authorize.net people. I think MD5 option never worked with CiviCRM. Note that Authorize.net is community contributed payment processor so don't know much about it.

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Error when contribution page titles contain double quotes?

This forum was archived on 2017-11-26.