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 CiviMail (Moderator: Piotr Szotkowski) »
  • Spaces in URLs (anchor tags) and Tracking
Pages: [1]

Author Topic: Spaces in URLs (anchor tags) and Tracking  (Read 5615 times)

civicrmsav

  • I post frequently
  • ***
  • Posts: 121
  • Karma: 5
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.x
Spaces in URLs (anchor tags) and Tracking
May 28, 2013, 10:19:34 am
The CiviCRM link tracking feature doesn't seem to handle spaces in urls.  Yep, I know that's not typical, but occasionally there are urls where there's a space in the anchor tag ("www.blah.com#this is where I want to go") .

I found a similar issue where commas in urls were causing the tracking feature to not work. (http://issues.civicrm.org/jira/browse/CRM-3384).

This was fixed in this issue by adding "\," to  the list of $gunk    = '\{\}/#~:.?+=&;%@!\,\-'; in  /CRM/Mailing/BAO/Mailing.php

I tried adding a space there as well like this: $gunk    = '\{\}/#~:.?+=&;%@!\,\-\ '; and in a quick test it seemed to work fine, but I'm checking in to see if there is any reason that anyone can that this is a terrible idea.   And if not, should that be modified in core?

Thanks.
   
   

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Spaces in URLs (anchor tags) and Tracking

This forum was archived on 2017-11-26.