Changeset 18e2a3ef in github


Ignore:
Timestamp:
Dec 31, 2006 10:16:09 AM (6 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
462a9d9
Parents:
2af4e48
Message:

Event handler removing again. Closes #1484200

Location:
program
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • program/include/main.inc

    r86df152 r18e2a3ef  
    10891089 * @see rep_specialchars_output 
    10901090 */ 
    1091 function JQ($str, $mode='strict', $newlines=TRUE) 
    1092   { 
    1093   return rep_specialchars_output($str, 'js', $mode, $newlines); 
     1091function JQ($str) 
     1092  { 
     1093  return rep_specialchars_output($str, 'js'); 
    10941094  } 
    10951095 
  • program/steps/mail/func.inc

    r86df152 r18e2a3ef  
    12151215    { 
    12161216    $prev_body = $body; 
    1217     $body = preg_replace('/(<[^!][^>]*?\s)(on[^=]+)(=[^>]*?>)/im', '$1__removed=$3', $body); 
    1218     $body = preg_replace('/(<[^!][^>]*?\shref=["\']?)(javascript:)([^>]*?>)/im', '$1null:$3', $body); 
     1217    $body = preg_replace('/(<[^!][^>]*\s)(on[^=>]+)=([^>]+>)/im', '$1__removed=$3', $body); 
     1218    $body = preg_replace('/(<[^!][^>]*\shref=["\']?)(javascript:)([^>]*?>)/im', '$1null:$3', $body); 
    12191219    } 
    12201220 
Note: See TracChangeset for help on using the changeset viewer.