Changeset 1838306
- Timestamp:
- 03/12/2018 12:33:23 AM (7 years ago)
- Location:
- writing-on-github/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
writing-on-github/trunk/lib/request.php
r1836044 r1838306 109 109 } 110 110 111 $this->headers = array(); 111 112 if ( function_exists( 'getallheaders' ) ) { 112 113 $this->headers = getallheaders(); 114 return $this->headers; 115 } 116 /** 117 * Nginx and pre 5.4 workaround. 118 * @see http://www.php.net/manual/en/function.getallheaders.php 119 */ 120 $this->headers = array(); 121 foreach ( $_SERVER as $name => $value ) { 122 if ( 'HTTP_' === substr( $name, 0, 5 ) ) { 123 $this->headers[ str_replace( ' ', '-', ucwords( strtolower( str_replace( '_', ' ', substr( $name, 5 ) ) ) ) ) ] = $value; 113 $headers = getallheaders(); 114 // github webhook 115 // content-type: application/json 116 // Expect: 117 // User-Agent: GitHub-Hookshot/7a71d82 118 // X-GitHub-Delivery: a331b200-2537-11e8-9d7e-ce0853020b44 119 // X-GitHub-Event: push 120 // X-Hub-Signature: sha1=98185ffa2c4684c9a1324c57086709acca9dddc7 121 foreach ( $headers as $name => $value ) { 122 $this->headers[ str_replace( ' ', '-', ucwords( strtolower( str_replace( '-', ' ', $name ) ) ) ) ] = $value; 123 } 124 } else { 125 /** 126 * Nginx and pre 5.4 workaround. 127 * @see http://www.php.net/manual/en/function.getallheaders.php 128 */ 129 foreach ( $_SERVER as $name => $value ) { 130 if ( 'HTTP_' === substr( $name, 0, 5 ) ) { 131 $this->headers[ str_replace( ' ', '-', ucwords( strtolower( str_replace( '_', ' ', substr( $name, 5 ) ) ) ) ) ] = $value; 132 } 124 133 } 125 134 } -
writing-on-github/trunk/readme.txt
r1836044 r1838306 7 7 Requires at least: 3.9 8 8 Tested up to: 4.9.4 9 Stable tag: 1. 89 Stable tag: 1.9 10 10 License: GPLv2 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 136 136 == Changelog == 137 137 138 = 1.9 = 139 140 * Fixed webhook error on apache server 141 138 142 = 1.8 = 139 143 … … 206 210 [1.7]: https://github.com/litefeel/writing-on-github/releases/tag/1.7 207 211 [1.8]: https://github.com/litefeel/writing-on-github/releases/tag/1.8 212 [1.9]: https://github.com/litefeel/writing-on-github/releases/tag/1.9 -
writing-on-github/trunk/vendor/autoload.php
r1836044 r1838306 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 4cd77128cdef6e0cbb9a7016878f8015::getLoader();7 return ComposerAutoloaderInit08110c1eacaf0ad159241b30b6754f00::getLoader(); -
writing-on-github/trunk/vendor/composer/autoload_real.php
r1836044 r1838306 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 4cd77128cdef6e0cbb9a7016878f80155 class ComposerAutoloaderInit08110c1eacaf0ad159241b30b6754f00 6 6 { 7 7 private static $loader; … … 20 20 } 21 21 22 spl_autoload_register(array('ComposerAutoloaderInit 4cd77128cdef6e0cbb9a7016878f8015', 'loadClassLoader'), true, true);22 spl_autoload_register(array('ComposerAutoloaderInit08110c1eacaf0ad159241b30b6754f00', 'loadClassLoader'), true, true); 23 23 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 24 spl_autoload_unregister(array('ComposerAutoloaderInit 4cd77128cdef6e0cbb9a7016878f8015', 'loadClassLoader'));24 spl_autoload_unregister(array('ComposerAutoloaderInit08110c1eacaf0ad159241b30b6754f00', 'loadClassLoader')); 25 25 26 26 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 28 28 require_once __DIR__ . '/autoload_static.php'; 29 29 30 call_user_func(\Composer\Autoload\ComposerStaticInit 4cd77128cdef6e0cbb9a7016878f8015::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit08110c1eacaf0ad159241b30b6754f00::getInitializer($loader)); 31 31 } else { 32 32 $map = require __DIR__ . '/autoload_namespaces.php'; … … 49 49 50 50 if ($useStaticLoader) { 51 $includeFiles = Composer\Autoload\ComposerStaticInit 4cd77128cdef6e0cbb9a7016878f8015::$files;51 $includeFiles = Composer\Autoload\ComposerStaticInit08110c1eacaf0ad159241b30b6754f00::$files; 52 52 } else { 53 53 $includeFiles = require __DIR__ . '/autoload_files.php'; 54 54 } 55 55 foreach ($includeFiles as $fileIdentifier => $file) { 56 composerRequire 4cd77128cdef6e0cbb9a7016878f8015($fileIdentifier, $file);56 composerRequire08110c1eacaf0ad159241b30b6754f00($fileIdentifier, $file); 57 57 } 58 58 … … 61 61 } 62 62 63 function composerRequire 4cd77128cdef6e0cbb9a7016878f8015($fileIdentifier, $file)63 function composerRequire08110c1eacaf0ad159241b30b6754f00($fileIdentifier, $file) 64 64 { 65 65 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
writing-on-github/trunk/vendor/composer/autoload_static.php
r1836044 r1838306 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 4cd77128cdef6e0cbb9a7016878f80157 class ComposerStaticInit08110c1eacaf0ad159241b30b6754f00 8 8 { 9 9 public static $files = array ( … … 35 35 { 36 36 return \Closure::bind(function () use ($loader) { 37 $loader->classMap = ComposerStaticInit 4cd77128cdef6e0cbb9a7016878f8015::$classMap;37 $loader->classMap = ComposerStaticInit08110c1eacaf0ad159241b30b6754f00::$classMap; 38 38 39 39 }, null, ClassLoader::class); -
writing-on-github/trunk/writing-on-github.php
r1836044 r1838306 4 4 * Plugin URI: https://github.com/litefeel/writing-on-github 5 5 * Description: A WordPress plugin to allow you writing on GitHub (or Jekyll site). 6 * Version: 1. 86 * Version: 1.9 7 7 * Author: litefeel 8 8 * Author URI: https://www.litefeel.com
Note: See TracChangeset
for help on using the changeset viewer.