Aklapper has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/165085

Change subject: Sync custom repository with what's on Bugzilla production 
server already.
......................................................................

Sync custom repository with what's on Bugzilla production server already.

See RT #8516

Change-Id: I55e3a2cbcc003e84833eb460ebbfb9f50f4350ad
---
M attachment.cgi
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/bugzilla/modifications 
refs/changes/85/165085/1

diff --git a/attachment.cgi b/attachment.cgi
index 769c47f..82207a5 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -205,8 +205,9 @@
 {
   my $context = $cgi->param('context') || "patch";
   if ($context ne "file" && $context ne "patch") {
-    detaint_natural($context)
-      || ThrowUserError("invalid_context", { context => $cgi->param('context') 
});
+      my $orig_context = $context;
+      detaint_natural($context)
+        || ThrowUserError("invalid_context", { context => $orig_context });
   }
 
   return $context;

-- 
To view, visit https://gerrit.wikimedia.org/r/165085
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I55e3a2cbcc003e84833eb460ebbfb9f50f4350ad
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/bugzilla/modifications
Gerrit-Branch: master
Gerrit-Owner: Aklapper <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to