jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/405740 )
Change subject: Added more forbidden pseudo-SQL keywords for field names
......................................................................
Added more forbidden pseudo-SQL keywords for field names
Change-Id: I9b4e0d8cc5ab43bd3fa3c1408e0cc950e0dfd6f7
---
M includes/parserfunctions/CargoDeclare.php
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Yaron Koren: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/parserfunctions/CargoDeclare.php
b/includes/parserfunctions/CargoDeclare.php
index 0fcd7bc..26f3c88 100644
--- a/includes/parserfunctions/CargoDeclare.php
+++ b/includes/parserfunctions/CargoDeclare.php
@@ -67,7 +67,7 @@
} elseif ( in_array( strtolower( $fieldName ),
// Similarly, handle the Cargo
// pseudo-SQL keywords.
- array( 'holds', 'near' ) ) ) {
+ array( 'holds', 'matches', 'near',
'within' ) ) ) {
return CargoUtils::formatError( "Error:
\"$fieldName\" cannot be used as a Cargo field name, because it is already a
Cargo keyword." );
}
try {
--
To view, visit https://gerrit.wikimedia.org/r/405740
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I9b4e0d8cc5ab43bd3fa3c1408e0cc950e0dfd6f7
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Cargo
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <[email protected]>
Gerrit-Reviewer: Yaron Koren <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits