wiki.techinc.nl/includes/upload
Edward Chernenko d88e924b6e Fix PHP warnings "preg_replace(): [...] invalid range in character class"
This was spotted when running tests on Travis (PHP 7.3 nighly, trusty).

Two expressions inside preg_replace() contained non-escaped "-" inside [],
where this "-" meant an actual "-" character.
The warning is because "-" has special meaning inside [] ("a-z" for range),
and things like [\w-.] are considered "invalid range".

Solution is to escape "-" like this: [\w\-.]

Change-Id: I41cc217081f00f54d957b6d8052ee209412f5ff6
2018-06-19 00:11:33 +00:00
..
UploadBase.php PHP: Use short ternary operator (?:) where possible 2018-06-11 11:26:35 +02:00
UploadFromChunks.php Replace call_user_func_array(), part 2 2018-06-07 20:19:26 -07:00
UploadFromFile.php Add missing & to @param documentation to match functon call 2017-08-11 18:47:46 +02:00
UploadFromStash.php Add missing & to @param documentation to match functon call 2017-08-11 18:47:46 +02:00
UploadFromUrl.php UploadFromUrl: Fix typo 2017-08-31 21:11:06 +10:00
UploadStash.php Fix PHP warnings "preg_replace(): [...] invalid range in character class" 2018-06-19 00:11:33 +00:00