Add WebRequest methods for determining "safe" requests
[lhc/web/wiklou.git] / includes / specialpage / SpecialPageFactory.php
index 725c4fc..f529720 100644 (file)
@@ -539,6 +539,7 @@ class SpecialPageFactory {
                        $trxProfiler = Profiler::instance()->getTransactionProfiler();
                        if ( $context->getRequest()->wasPosted() && !$page->doesWrites() ) {
                                $trxProfiler->setExpectations( $trxLimits['POST-nonwrite'], __METHOD__ );
+                               $context->getRequest()->markAsSafeRequest();
                        }
                }