wiki.techinc.nl/includes/export
C. Scott Ananian 9e033de4f2 Don't double-escape the ellipses in Language::truncateForVisual()
It turns out this gets rid of a bunch of suppressed
"SecurityCheck-DoubleEscaped" that appear to have been accurate
warnings.

There seems to have been some confusion about how ::truncateForVisual()
is supposed to be used; in particular it is to be passed *unescaped*
output, because it is not (generally speaking) safe to truncate
HTML-escaped strings.  The goal of ::truncateForVisual() is to have
a specific number of codepoints in the output for display purposes,
the encoding of those codepoints is not an issue (htmlspecialchars
can be applied to the *return value*.)  If you need a specific number
of *bytes* you should be using ::truncateForDatabase().  If you want
a certain number of *HTML bytes* then the ::truncateHtml() method
is probably what you want.

Slightly refactor some code in RevDelLogItem to avoid a false positive.

Bug: T301205
Bug: T290624
Change-Id: I893362e049aedfa699043fcf27caf4815196f748
2022-02-10 17:09:18 -05:00
..
Hook Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
BaseDump.php Improve and add documentation to import/export related classes 2021-02-01 19:35:49 +00:00
Dump7ZipOutput.php Add missing visibility on methods related to import/export 2020-05-09 11:56:48 +00:00
DumpBZip2Output.php Set method visibility for various constructors 2019-12-03 20:17:30 +01:00
DumpDBZip2Output.php Set method visibility for various constructors 2019-12-03 20:17:30 +01:00
DumpFileOutput.php export: Remove excessive indenting and unnecessary else 2020-05-09 22:16:27 +01:00
DumpFilter.php import/export: Add documentation for nullable arguments 2021-10-16 21:49:18 +00:00
DumpGZipOutput.php Set method visibility for various constructors 2019-12-03 20:17:30 +01:00
DumpLatestFilter.php Improve and add documentation to import/export related classes 2021-02-01 19:35:49 +00:00
DumpLBZip2Output.php Set method visibility for various constructors 2019-12-03 20:17:30 +01:00
DumpMultiWriter.php Change object to stdClass type hints in export related classes 2020-11-15 09:44:00 +00:00
DumpNamespaceFilter.php Remove NS_IMAGE and NS_IMAGE_TALK from DumpNamespaceFilter 2021-10-11 15:23:44 +02:00
DumpNotalkFilter.php Change object to stdClass type hints in export related classes 2020-11-15 09:44:00 +00:00
DumpOutput.php import/export: Add documentation for nullable arguments 2021-10-16 21:49:18 +00:00
DumpPipeOutput.php Improve and add documentation to import/export related classes 2021-02-01 19:35:49 +00:00
DumpStringOutput.php Improve and add documentation to import/export related classes 2021-02-01 19:35:49 +00:00
ExportProgressFilter.php Improve and add documentation to import/export related classes 2021-02-01 19:35:49 +00:00
WikiExporter.php BackupDumper: fix default value of --schema-version 2022-01-13 23:00:11 +01:00
WikiExporterFactory.php Update @since doc for WikiExporterFactory 2021-09-16 19:10:46 +02:00
XmlDumpWriter.php Don't double-escape the ellipses in Language::truncateForVisual() 2022-02-10 17:09:18 -05:00