Merge "Make phpcs-strict pass on includes/ (7/7)"
[lhc/web/wiklou.git] / includes / EditPage.php
index 5789a2a..1035ad4 100644 (file)
@@ -1324,8 +1324,6 @@ class EditPage {
         * marked HttpOnly. The JavaScript code converts the cookie to a wgPostEdit config
         * variable.
         *
-        * We use a path of '/' since wgCookiePath is not exposed to JS
-        *
         * If the variable were set on the server, it would be cached, which is unwanted
         * since the post-edit state should only apply to the load right after the save.
         *
@@ -1344,7 +1342,6 @@ class EditPage {
 
                $response = RequestContext::getMain()->getRequest()->response();
                $response->setcookie( $postEditKey, $val, time() + self::POST_EDIT_COOKIE_DURATION, array(
-                       'path' => '/',
                        'httpOnly' => false,
                ) );
        }