To participate you must create an account on apostrophenow.com. If you have already done so, click Login.

Changeset 1822

Show
Ignore:
Timestamp:
07/22/2010 03:25:02 PM (6 weeks ago)
Author:
rickybanister
Message:

email obfuscator was generating random GUIDs for the email mailto links. They were often generating IDs with starting with numbers and this is caused validation errors. Fixed this in 1.4 and the trunk

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostrophePlugin/branches/1.4/lib/toolkit/aHtml.class.php

    r1814 r1822  
    541541    $label = self::jsEscape(trim($label)); 
    542542    // ACHTUNG: this is carefully crafted to avoid introducing extra whitespace 
    543     return "<a href='#' id='$guid'></a><script type='text/javascript' charset='utf-8'> 
    544           var e = document.getElementById('$guid'); 
     543                // Note: $guid was returning IDs with leading numbers. This threw validation errors so I appended a 'g-' to the ID - JB 7.22.10 
     544    return "<a href='#' id='g-".$guid."'></a><script type='text/javascript' charset='utf-8'> 
     545          var e = document.getElementById('g-".$guid."'); 
    545546      e.setAttribute('href', '$href'); 
    546547      e.innerHTML = '$label';