Commit graph

9 commits

Author SHA1 Message Date
James D. Forrester
8e940c4f21 Standardise all our class alias deprecation comments for ease of grepping
Change-Id: I7f85d931d3b79da23e87b4e5692b2e14be8fcaa0
2024-03-19 20:11:29 +00:00
Daimona Eaytoy
175c0c4abf Replace more instances of deprecated MWException
Bug: T328220
Change-Id: Iba90f7f9b5766bccc05380d040138d74d5e9558a
2024-01-19 23:11:59 +00:00
Daimona Eaytoy
2520f3d1c4 Replace more usages of deprecated MWException
Bug: T328220
Change-Id: Ie9b56bcf5e962e275d80570cad98d676da505894
2024-01-19 22:01:12 +00:00
Daimona Eaytoy
9f0439bc7c Annotate FormOptions::getValue as returning an unsafe value
Taint-check can actually determine this on its own, but this way the
error messages are more concise because they don't go into the details
of why the return value is tainted.

Note that the return value may actually be safe depending on its type,
but that's not easy for taint-check to know, and a core principle of
taint-check is to prefer false positives to false negatives.

Change-Id: I1e690f535a144cc53cbf3483a8f1d7d8d8eb4519
2023-09-28 23:49:08 +02:00
Amir Sarabadani
5bd33d46ef Reorg: Move WebRequest to includes\Request
This has been approved as part of RFC T166010

Bug: T321882
Change-Id: I6bbdbbe6ea48cc1f50bc568bb8780fc7c5361a6f
2023-09-11 21:44:34 +01:00
Umherirrender
672fd39a53 Html: Reject nested arrays from web request in FormOptions
This is similiar to 58087fb7

Bug: T344931
Change-Id: I567b01c0e06cd6c11c1891b5ae7704087296693c
2023-08-29 22:05:32 +02:00
James D. Forrester
ba9c48b934 Follow-up 7d8768e: Add in-code comment on aliases for when they were added
Change-Id: I34f9de9dd4a426f9950a45ab70828adf1aa3532d
2023-08-25 20:55:09 +00:00
Thiemo Kreuz
763dc7b984 Fix Special:WhatLinksHere behavior on limit= vs. limit=0
This makes the limit=… parameter behave more predictable, in my
opinion:
- …?limit=0 is still respected. I don't get why anybody would
  do this intentionally. But even if it's an error, ignoring
  the number would hide that error.
- …?limit= without a value as well as …?limit fall back to the
  default value instead of 0.

Bug: T289351
Change-Id: I9ffa642d6aef235f56253fbf102a4e3943847d31
2023-05-22 11:05:20 +10:00
Amir Sarabadani
7d8768e931 Reorg: Move HTML-related classes out of includes/ to Html/
Bug: T321882
Change-Id: I5dc1f7e9c303cd3f5b9dd7010d6bb470d8400a18
2023-02-16 20:40:01 +01:00
Renamed from includes/FormOptions.php (Browse further)