Commit:    7a6b41865645e860daf30d349cecba984e9fb907
Author:    Sherif Ramadan <[email protected]>         Wed, 11 Dec 2013 00:47:27 
-0500
Parents:   c52e44f7efff918b7bc33af7cea960cc4b0a0478
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=7a6b41865645e860daf30d349cecba984e9fb907

Log:
Revert commit 540872824575ecfcdf42511a7784ccbd1d3f4e13

Problem was fixed in prepend.inc instead

Changed paths:
  M  manual/vote-note.php


Diff:
diff --git a/manual/vote-note.php b/manual/vote-note.php
index c56c57f..8aa3acc 100644
--- a/manual/vote-note.php
+++ b/manual/vote-note.php
@@ -19,14 +19,6 @@ $master_url = 
"http://master.php.net/entry/user-notes-vote.php";;
 
 if ($_SERVER['REQUEST_METHOD'] == 'POST') {
   if (isset($_SERVER['HTTP_X_JSON']) && $_SERVER['HTTP_X_JSON'] == 'On' && 
!empty($_REQUEST['id']) && !empty($_REQUEST['page']) && ($N = 
manual_notes_load($_REQUEST['page'])) && array_key_exists($_REQUEST['id'], $N) 
&& !empty($_REQUEST['vote']) && ($_REQUEST['vote'] === 'up' || 
$_REQUEST['vote'] === 'down')) {
-    // Set Access-Control-Allow-Origin response headers here
-    $accessAllowed = 
array('http://php.net','http://www.php.net','https://www.php.net'); // include 
the default php.net hosts
-    if (isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] !== 'php.net' && 
$_SERVER['HTTP_HOST'] !== 'www.php.net') {
-        // include the current host requested in case we're using a mirror
-        $accessAllowed[] = 'http://' . $_SERVER['HTTP_HOST'];
-    }
-    header('Access-Control-Allow-Origin: ' . implode(',',$accessAllowed));
-    
     $response = array();
     $update = $N[$_REQUEST['id']]['votes']['up'] - 
$N[$_REQUEST['id']]['votes']['down'];
     $hash = substr(md5($_REQUEST['page']), 0, 16);


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to