20 return trim( $this->su->updateText( $text ) );
30 'HTML stripped, text lowercased'
37 <tr
class=
"scary"><td><
div>foo</div></td><tr>bar</td></tr>
38 <tr><td>boz</td><tr>quux</td></tr>
41 ),
'Stripping HTML tables' );
46 'Handle unclosed tags'
49 $text =
str_pad(
"foo <barbarbar \n", 10000,
'x' );
64 $text =
"text „http://example.com“ text";
69 'Link surrounded by unicode quotes should not fail UTF-8 validation'
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
update( $id, $title, $text)
Create or update the search index record for the given page.
Contain a class for special pages.
testUnicodeLinkSearchIndexError()
SearchUpdate::updateText Test T34712 Test if unicode quotes in article links make its search index em...
testUpdateText()
SearchUpdate::updateText.
Database independant search index updater.
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global then executing the whole list after the page is displayed We don t do anything smart like collating updates to the same table or such because the list is almost always going to have just one item on if so it s not worth the trouble Since there is a job queue in the jobs table