Reedy
ec6f8c5fee
GenerateFancyCaptchas: Include stderr result if captcha.py returns an error code
...
Bug: T360653
Change-Id: Ie998180e5a74441c76e236074961cf0d34aaecaf
2024-03-21 16:40:49 +00:00
Reedy
86af079ed9
Deprecate use of captcha-old.py
...
Bug: T357930
Change-Id: I69a2e68d430d7a5769fb8b4391f1163ee99ad8fb
2024-02-19 19:11:43 +00:00
Reedy
cbbe6611b4
FancyCaptcha: Remove deprecated blacklist parameter
...
Bug: T277936
Depends-On: Ia467c4fb56e9920826a2e4e505e277683ab154b8
Change-Id: Ia64c20bf4638cdba85860dbd2852ee04f9498561
2024-01-27 15:07:32 +00:00
jenkins-bot
9625c91e18
Merge "FancyCaptcha: Allow configuration of the actual directory captchas are stored in"
2024-01-26 16:18:10 +00:00
Amir Sarabadani
a84d6f0fc2
GenerateFancyCaptchas: Add ->disableSandbox() to shell command
...
->restrict( Shell::RESTRICT_NONE ) that was removed was by my mistake.
It ::restrict() is deprecated but the internal call, calls
->disableSandbox() when the value is zero.
Follows-Up: I7b71c2f6b1bf05a4f00f2367a795db093dc00867
Change-Id: I6c8ff91aca183bdaa2473d86a029561440ed2ab3
2024-01-23 01:00:02 +01:00
Amir Sarabadani
1e1e9e89ba
GenerateFancyCaptchas: Use Shell::params() instead of ::unsafeParams()
...
::unsafeParams() is for when the params are raw strings while we turned
these into proper array which means they need proper quoting while being
appended to the main bash command.
Follows-Up: Iae3fdea224d896c1a7b53ce1fe7d849cb35a0401
Change-Id: I7b71c2f6b1bf05a4f00f2367a795db093dc00867
2024-01-22 14:56:22 +01:00
Amir Sarabadani
e1c7392a8e
Migrate away from deprecated wfShellExec
...
Change-Id: Iae3fdea224d896c1a7b53ce1fe7d849cb35a0401
2024-01-16 15:19:58 +00:00
Reedy
36bd54e4ec
FancyCaptcha: Allow configuration of the actual directory captchas are stored in
...
Change-Id: Iecc48db5237adc5b89c99019faac0af425e4eb5d
2024-01-15 15:43:46 +00:00
Umherirrender
92bc1f3d2f
Use namespaced classes
...
Changes to the use statements done automatically via script
Addition of missing use statements done manually
Change-Id: Id44f211320e56bc83e4c8f243369dc4eb562cf37
2023-12-11 00:07:55 +01:00
Reedy
a0feac27b0
Namespace captchas
...
Change-Id: I2933639f9cb50db2101c4765ce9d8f9069d253b8
2022-12-13 21:40:30 +00:00
Reedy
30cd1d8a23
Namespace base classes
...
Change-Id: I3fa9747e0ea970c5de39e2da8603e1bba9388a69
2022-07-30 18:13:03 +00:00
Reedy
db06ec876b
FancyCaptcha: Deprecate and add alternative for blacklist parameter in generation
...
Bug: T277936
Change-Id: I8e758023b38a4d450a0bf02b3bfc0b5033959be7
2022-07-04 16:16:20 +00:00
Reedy
3b9ab99b1d
Make GenerateFancyCaptchas.php execute captcha(-old)?.py via python3
...
Bug: T268468
Change-Id: I3d5113d1a83eea9f711ee2bb206fe9423431b887
2020-12-01 18:28:00 +00:00
Reedy
297897220c
Use $this->fatalError() where $this->error() is called with $die > 1
...
Change-Id: Ia8cf34437661f53a2c28bc9e2077fe5c7c8103de
2020-09-18 17:11:56 +01:00
libraryupgrader
d481d0c8db
build: Updating mediawiki/mediawiki-phan-config to 0.9.0
...
Additional changes:
* Added .eslintcache to .gitignore.
* Fix wrong types
Change-Id: I833b061c62b82f3c88d968c70bae8317641aaa3d
2019-12-27 14:42:40 +00:00
Umherirrender
071ce05bfe
Use correct default value for Status::getWikiText
...
Change-Id: If9e4f297ce8435bd9001b5a8f5b15f9b127749e3
2019-12-12 19:59:33 +01:00
jenkins-bot
1a3875db83
Merge "Output some leading newlines and specify script being run"
2019-10-18 00:41:47 +00:00
Reedy
33351c2392
Make the description for --delete more specific
...
s/captches/captchas/ too
Point out verbose only affects captcha python script
Change-Id: I97f89427a62a7b8d26fb09641422433ded81f594
2019-10-16 21:31:43 +00:00
Reedy
0f5f6e44af
Output some leading newlines and specify script being run
...
Change-Id: Ic51bdcd656297491fc6f0f09a3b5c2474d2e07a8
2019-10-16 22:08:07 +01:00
Umherirrender
19e6d4d902
Use Maintenance::addDescription
...
It is better to use a setter function than setting a property
Change-Id: I173b3f4af54cf8f6427895e1e170ec97e10d4f3d
2019-08-19 19:03:36 +02:00
Umherirrender
f96b1eda5b
Use ::class for class name resolution
...
Available since php5.5
Change-Id: I9b072c487b84e04fbb7e9ad8ed4b9db46d805ee8
2019-03-02 19:39:36 +01:00
Zoranzoki21
6e7c48e667
Fix "Suceeded" typo in code
...
Bug: T201491
Change-Id: I89d3fa4667efee45daee9816814f1a7b067f50c4
2018-08-27 20:10:28 +00:00
Umherirrender
1d60bc25d2
build: Updating mediawiki/mediawiki-codesniffer to 0.10.0
...
Change-Id: I8d107ad6801fe1a5ce7b8feb8e1e730d504a2fb3
2017-07-08 16:04:35 +02:00
Florian Schmidt
66152162fe
Add threads parameter to captcha.py for multithread CAPTCHA generation
...
Bug: T157734
Change-Id: If4f6bc9048aceacc41538c001255425e848fd8e9
2017-06-12 17:11:58 +01:00
Reedy
40e831d464
Remove implode erroneously left
...
Swap some output calls to error
Don't attempt to delete if the store has had any sort of errors
Remove try/catch and unindent
Follows up Ib8d5ddf4ca95defe705a6f7db01dc6f43ca5d9db
Change-Id: I982c4ee5e7d48a07c5d8d0211d1e618d83065536
2017-03-23 01:08:19 +00:00
jenkins-bot
7e98f888fe
Merge "Remove entirely pointless directory iteration in GenerateFancyCaptchas"
2017-03-08 18:30:51 +00:00
Gergő Tisza
ba936103c3
Remove entirely pointless directory iteration in GenerateFancyCaptchas
...
Bug: T159606
Change-Id: Ic03a0e83878cd75235095a942400aca4293e791c
2017-03-07 11:35:01 -08:00
Gergő Tisza
508a3d8545
Fix error output
...
Bug: T159581
Bug: T159831
Change-Id: Ib8d5ddf4ca95defe705a6f7db01dc6f43ca5d9db
2017-03-07 18:12:35 +00:00
Gergő Tisza
175486431b
Warn when some of the captcha generation operations fail
...
Change-Id: If0567186410673137b08633205c3322753985412
2017-03-03 19:24:48 -08:00
Reedy
7de460c289
Switch file store/delete operations to batch operations
...
Bug: T157738
Change-Id: Ief109d78788fc9f6346e08661b973d65a035cafe
2017-02-16 21:13:16 +00:00
Reedy
1381924e7c
Fix class name to match file
...
More text tweaks to include fancy
Change-Id: I998ec3fa9268cff8fdb27de916903a573b6e46f1
2017-02-16 16:27:10 +00:00
Reedy
cff6e0f359
Add timing instrumentation
...
Move some code closer to relevant usage
Tweak some output of newlines
Bug: T157737
Change-Id: I3a4d9c74a3a93fe0474e78c9c0913dd85dec4bb6
2017-02-10 19:27:19 +00:00
Reedy
a2fc069174
Use an accurate number of captchas
...
Change-Id: Ice434235687aa68ccf37a0219d379beb97e5a8ec
2017-02-08 18:05:49 +00:00
Reedy
b15d5827d3
Fix class description for maintenance script
...
Change-Id: I552c9e5e200def239e2894f67183e7e47d202ea4
2017-02-07 15:34:29 +00:00
Reedy
3bf3f53576
Fix inclusion of Maintenance.php
...
Follows up I9c33c65c913d891739b913d5363abba66c2cd0dd
Change-Id: I6d0bdf25a14f284b0eef71748008cd43b332d7b6
2017-02-01 20:40:06 +00:00
Ed Sanders
ae85f2ac6b
Replace jshint/jscs with eslint and add stylelint
...
Change-Id: I9c33c65c913d891739b913d5363abba66c2cd0dd
2017-01-18 16:53:09 -08:00
divadsn
2dc4472e04
Update Maintenance scripts to use $this->requireExtension()
...
Bug: T152139
Change-Id: I987c75233c8c1d02b240c1f2644aacd43dfff252
2017-01-01 17:34:33 +00:00
Reedy
18849474b9
Add --delete to GenerateFancyCaptchas
...
Bug: T151244
Change-Id: I722b507dc76da4d7f0970e40bb777137b1c0b327
2016-11-21 20:57:57 +00:00
Reedy
c82a903e6f
Allow usage of old captcha script
...
To be reverted at a later date when improved script is allowable for
usage on WMF wikis.
Change-Id: Id23483286ae2549bfd6f1377c6a0d0c0898b88c4
2016-11-04 19:01:15 +00:00
Kunal Mehta
9ea898ba2a
build: Updating mediawiki/mediawiki-codesniffer to 0.7.1
...
Also added "composer fix" command.
Change-Id: Ibda3fd002c577c7f7c41920d67ec44fedbd27cb8
2016-05-09 16:41:17 -07:00
Paladox
30490fba52
Add php code sniffer
...
Change-Id: I298b8b936a2b86deea75c302d88a7391cdb221c9
2015-10-28 21:46:29 +00:00
Aaron Schulz
0e761f3325
Merge "Disable ulimit time limit for long-running captcha.py script."
2013-01-02 18:27:41 +00:00
Aaron Schulz
82cc98f128
Disable ulimit time limit for long-running captcha.py script.
...
Change-Id: I367120a1746ac329d675c0a31c9ddb4ef10e3b0f
2012-12-18 15:18:11 -08:00
Aaron Schulz
099b318d61
Actually create directories before using store operations.
...
Change-Id: I69a6b84f2f989fbe4cdd35ba75f25a4a26406347
2012-12-18 14:25:37 -08:00
Aaron Schulz
13d62bf9c7
File backend support for Captchas.
...
* Added $wgCaptchaFileBackend configuration setting.
This causes captchas to be stored in the registered backend.
* Added $wgMemc usage to reduce directory operation I/O.
* Improved $wgCaptchaDeleteOnSolve in terms of race conditions.
* Added maintenance script to create and store new captchas based
on the total amount desired and the current number remaining.
Change-Id: Iac490503fb94a8f003e3b7e1474a949b037af5df
2012-09-25 23:22:04 -07:00