? help-blocks-1.patch ? standalone-html-escape-1.patch ? standalone-html-escape.patch ? includes/password.inc ? includes/passwordhash.inc ? sites/default/files ? sites/default/settings.php Index: modules/filter/filter.admin.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/filter/filter.admin.inc,v retrieving revision 1.10 diff -u -p -r1.10 filter.admin.inc --- modules/filter/filter.admin.inc 19 Feb 2008 14:07:21 -0000 1.10 +++ modules/filter/filter.admin.inc 1 Apr 2008 04:34:43 -0000 @@ -144,7 +144,7 @@ function filter_admin_format_form(&$form $form['filters'] = array('#type' => 'fieldset', '#title' => t('Filters'), - '#description' => t('Choose the filters that will be used in this filter format.'), + '#description' => t('Select the filters to be enabled in this input format.'), '#tree' => TRUE, ); foreach ($all as $id => $filter) { @@ -164,7 +164,7 @@ function filter_admin_format_form(&$form if (!$tiplist) { $tiplist = '

'. t('No guidelines available.') .'

'; } - $group = '

'. t('These are the guidelines that users will see for posting in this input format. They are automatically generated from the filter settings.') .'

'; + $group = '

'. t('The following automatically-generated guidelines will be available to users posting in this input format.') .'

'; $group .= $tiplist; $form['tips'] = array('#value' => '

'. t('Formatting guidelines') .'

'. $group); } Index: modules/filter/filter.install =================================================================== RCS file: /cvs/drupal/drupal/modules/filter/filter.install,v retrieving revision 1.7 diff -u -p -r1.7 filter.install --- modules/filter/filter.install 15 Mar 2008 12:31:28 -0000 1.7 +++ modules/filter/filter.install 1 Apr 2008 04:34:43 -0000 @@ -106,3 +106,12 @@ function filter_update_7000() { db_add_field($ret, 'filter_formats', 'weight', array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny')); return $ret; } + +/** + * Break out "escape HTML filter" option to its own filter. + */ +function filter_update_7001() { + $ret = array(); + // @todo + return $ret; +} Index: modules/filter/filter.module =================================================================== RCS file: /cvs/drupal/drupal/modules/filter/filter.module,v retrieving revision 1.207 diff -u -p -r1.207 filter.module --- modules/filter/filter.module 13 Mar 2008 21:26:08 -0000 1.207 +++ modules/filter/filter.module 1 Apr 2008 04:34:44 -0000 @@ -6,14 +6,14 @@ * Framework for handling filtering of content. */ -// This is a special format ID which means "use the default format". This value -// can be passed to the filter APIs as a format ID: this is equivalent to not -// passing an explicit format at all. +/** + * Special format ID which means "use the default format". + * + * This value can be passed to the filter APIs as a format ID: this is + * equivalent to not passing an explicit format at all. + */ define('FILTER_FORMAT_DEFAULT', 0); -define('FILTER_HTML_STRIP', 1); -define('FILTER_HTML_ESCAPE', 2); - /** * Implementation of hook_help(). */ @@ -30,9 +30,9 @@ function filter_help($path, $arg) { $output .= '

'. t('Since input formats, if available, are presented in the same order as the list below, it may be helpful to arrange the formats in descending order of your preference for their use. To change the order of an input format, grab a drag-and-drop handle under the Name column and drag to a new location in the list. (Grab a handle by clicking and holding the mouse while hovering over a handle icon.) Remember that your changes will not be saved until you click the Save changes button at the bottom of the page.') .'

'; return $output; case 'admin/settings/filters/%': - return '

'. t('Every filter performs one particular change on the user input, for example stripping out malicious HTML or making URLs clickable. Choose which filters you want to apply to text in this input format. If you notice some filters are causing conflicts in the output, you can rearrange them.', array('@rearrange' => url('admin/settings/filters/'. $arg[3] .'/order'))) .'

'; + return '

'. t('Use the page below to select the filters to be applied as part of this input format. Each enabled filter performs a specific operation, generally either adding, removing or transforming elements within user-entered text. One filter may strip potentially malicious HTML from user input, for instance, while another transforms URLs into clickable links. Filters are executed in a specific order and may be rearranged to prevent conflicts in processing.', array('@rearrange' => url('admin/settings/filters/'. $arg[3] .'/order'))) .'

'; case 'admin/settings/filters/%/configure': - return '

'. t('If you cannot find the settings for a certain filter, make sure you have enabled it on the view tab first.', array('@url' => url('admin/settings/filters/'. $arg[3]))) .'

'; + return '

'. t('If the settings for a specific filter are not displayed, ensure the filter is enabled on the edit page.', array('@url' => url('admin/settings/filters/'. $arg[3]))) .'

'; case 'admin/settings/filters/%/order': $output = '

'. t('Because of the flexible filtering system, you might encounter a situation where one filter prevents another from doing its job. For example: a word in an URL gets converted into a glossary term, before the URL can be converted to a clickable link. When this happens, rearrange the order of the filters.') .'

'; $output .= '

'. t("Filters are executed from top-to-bottom. To change the order of the filters, modify the values in the Weight column or grab a drag-and-drop handle under the Name column and drag filters to new locations in the list. (Grab a handle by clicking and holding the mouse while hovering over a handle icon.) Remember that your changes will not be saved until you click the Save configuration button at the bottom of the page.") .'

'; @@ -171,100 +171,95 @@ function filter_filter_tips($delta, $for global $base_url; switch ($delta) { case 0: - if (variable_get("filter_html_$format", FILTER_HTML_STRIP) == FILTER_HTML_STRIP) { - if ($allowed_html = variable_get("allowed_html_$format", '