thomascube
2006-12-31 18e2a3efd06b8ffe3b0d27707c6cf650e4ae56a3
Event handler removing again. Closes #1484200

2 files modified
8 ■■■■ changed files
program/include/main.inc 4 ●●●● patch | view | raw | blame | history
program/steps/mail/func.inc 4 ●●●● patch | view | raw | blame | history
program/include/main.inc
@@ -1088,9 +1088,9 @@
 * Quote a given string. Alias function for rep_specialchars_output
 * @see rep_specialchars_output
 */
function JQ($str, $mode='strict', $newlines=TRUE)
function JQ($str)
  {
  return rep_specialchars_output($str, 'js', $mode, $newlines);
  return rep_specialchars_output($str, 'js');
  }
program/steps/mail/func.inc
@@ -1214,8 +1214,8 @@
  while ($body != $prev_body)
    {
    $prev_body = $body;
    $body = preg_replace('/(<[^!][^>]*?\s)(on[^=]+)(=[^>]*?>)/im', '$1__removed=$3', $body);
    $body = preg_replace('/(<[^!][^>]*?\shref=["\']?)(javascript:)([^>]*?>)/im', '$1null:$3', $body);
    $body = preg_replace('/(<[^!][^>]*\s)(on[^=>]+)=([^>]+>)/im', '$1__removed=$3', $body);
    $body = preg_replace('/(<[^!][^>]*\shref=["\']?)(javascript:)([^>]*?>)/im', '$1null:$3', $body);
    }
  // resolve <base href>