Changeset ee883ad in github for program/steps/mail/func.inc
- Timestamp:
- Dec 22, 2006 4:45:21 PM (6 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 822e276
- Parents:
- 8af7757
- File:
-
- 1 edited
-
program/steps/mail/func.inc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/steps/mail/func.inc
r2bca6e1 ree883ad 740 740 '/<script.+<\/script>/Umis'); 741 741 742 $remote_replaces = array('<img \\1src=\\2./program/bl ank.gif\\4',742 $remote_replaces = array('<img \\1src=\\2./program/blocked.gif\\4', 743 743 '', 744 744 '', … … 1211 1211 1212 1212 // replace event handlers on any object 1213 $body = preg_replace('/\s(on[a-z]+)=/im', ' __removed=', $body); 1213 $body = preg_replace('/\s(on[^=]+)=/im', ' __removed=', $body); 1214 $body = preg_replace('/\shref=["\']?(javascript:)/im', 'null:', $body); 1214 1215 1215 1216 // resolve <base href> … … 1252 1253 $attrib['onclick'] = sprintf("return %s.command('compose','%s',this)", 1253 1254 $GLOBALS['JS_OBJECT_NAME'], 1254 substr($attrib['href'], 7));1255 JQ(substr($attrib['href'], 7))); 1255 1256 else if (!empty($attrib['href']) && $attrib['href']{0}!='#') 1256 1257 $attrib['target'] = '_blank';
Note: See TracChangeset
for help on using the changeset viewer.
