/[drupal]/contributions/modules/filebrowser_extensions/avoid_autocomplete_escaping_errors.patch
ViewVC logotype

Contents of /contributions/modules/filebrowser_extensions/avoid_autocomplete_escaping_errors.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Mon Aug 28 22:10:22 2006 UTC (3 years, 3 months ago) by dman
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-4-7
File MIME type: text/x-patch
As requested, this is becoming a sub-project of its own
1 Index: form.inc
2 ===================================================================
3 RCS file: /cvs/drupal/drupal/includes/form.inc,v
4 retrieving revision 1.112.2.14
5 diff -u -r1.112.2.14 form.inc
6 --- form.inc 4 Jul 2006 09:23:19 -0000 1.112.2.14
7 +++ form.inc 18 Jul 2006 10:01:31 -0000
8 @@ -1017,7 +1017,9 @@
9 if ($element['#autocomplete_path']) {
10 drupal_add_js('misc/autocomplete.js');
11 $class[] = 'form-autocomplete';
12 - $extra = '<input class="autocomplete" type="hidden" id="'. $element['#id'] .'-autocomplete" value="'. check_url(url($element['#autocomplete_path'], NULL, NULL, TRUE)) .'" disabled="disabled" />';
13 + # Autocomplete doesn't play nice with slashes in the search string unless I
14 + # use the ?q= syntax . Apache seems to get confused.
15 + $extra = '<input class="autocomplete" type="hidden" id="'. $element['#id'] .'-autocomplete" value="'. check_url(url('','q='.$element['#autocomplete_path'], NULL, TRUE)) .'" disabled="disabled" />';
16 }
17 _form_set_class($element, $class);
18 $output = '<input type="text" maxlength="'. $element['#maxlength'] .'" name="'. $element['#name'] .'" id="'. $element['#id'] .'" '. $size .' value="'. check_plain($element['#value']) .'"'. drupal_attributes($element['#attributes']) .' />';

  ViewVC Help
Powered by ViewVC 1.1.2