Make WordPress Core

Changeset 19866


Ignore:
Timestamp:
02/08/2012 03:35:22 PM (13 years ago)
Author:
nacin
Message:

Use [\r\n\t ], not [\s], to prevent issues with some UTF-8 characters. props SergeyBiryukov, fixes #19033.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r19724 r19866  
    21812181                $q['search_terms'] = array($q['s']);
    21822182            } else {
    2183                 preg_match_all('/".*?("|$)|((?<=[\\s",+])|^)[^\\s",+]+/', $q['s'], $matches);
     2183                preg_match_all('/".*?("|$)|((?<=[\r\n\t ",+])|^)[^\r\n\t ",+]+/', $q['s'], $matches);
    21842184                $q['search_terms'] = array_map('_search_terms_tidy', $matches[0]);
    21852185            }
Note: See TracChangeset for help on using the changeset viewer.