Compare commits
14 Commits
1.3.3
...
fixEncodin
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
470e0fc33c | ||
|
|
f13a5d0a55 | ||
|
|
552e0cac3a | ||
|
|
294b8804a4 | ||
|
|
005d223c0d | ||
|
|
879a2a9255 | ||
|
|
f391773c65 | ||
|
|
b0800060c2 | ||
|
|
15f66870d1 | ||
|
|
afd82ac34d | ||
|
|
f190317d95 | ||
|
|
5d54006c9e | ||
|
|
2870023e9c | ||
|
|
df7a06315f |
@@ -1,14 +1,11 @@
|
|||||||
language: php
|
language: php
|
||||||
sudo: false
|
|
||||||
# only needed for PHP 5.5 support as of 2019-07
|
|
||||||
dist: trusty
|
|
||||||
php:
|
php:
|
||||||
- '5.5'
|
|
||||||
- '5.6'
|
- '5.6'
|
||||||
- '7.0'
|
- '7.0'
|
||||||
- '7.1'
|
- '7.1'
|
||||||
- '7.2'
|
- '7.2'
|
||||||
- '7.3'
|
- '7.3'
|
||||||
|
- '7.4'
|
||||||
|
|
||||||
# as this is a php project, node.js (for JS unit testing) isn't installed
|
# as this is a php project, node.js (for JS unit testing) isn't installed
|
||||||
install:
|
install:
|
||||||
|
|||||||
@@ -1,10 +1,17 @@
|
|||||||
# PrivateBin version history
|
# PrivateBin version history
|
||||||
|
|
||||||
* **1.4 (not yet released)**
|
* **1.4 (not yet released)**
|
||||||
|
* CHANGED: Minimum required PHP version is 5.6, due to a change in the identicon library and to use php's native hash_equals()
|
||||||
|
* CHANGED: Upgrading libraries to: identicon 2.0.0
|
||||||
|
* **1.3.3 (2020-02-16)**
|
||||||
* CHANGED: Upgrading libraries to: DOMpurify 2.0.8
|
* CHANGED: Upgrading libraries to: DOMpurify 2.0.8
|
||||||
* CHANGED: Several translations got updated with missing messages
|
* CHANGED: Several translations got updated with missing messages
|
||||||
* CHANGED: Introduce HTML entity encoding on server side (#581)
|
* CHANGED: Introduce HTML entity encoding on server side (#581)
|
||||||
* FIXED: HTML entity double encoding issues introduced in 1.3.2 (#560)
|
* FIXED: HTML entity double encoding issues introduced in 1.3.2 (#560)
|
||||||
|
* **1.2.3 (2020-02-16)**
|
||||||
|
* CHANGED: Upgrading libraries to: DOMpurify 2.0.8
|
||||||
|
* CHANGED: Introduce HTML entity encoding on server side (#581)
|
||||||
|
* FIXED: HTML entity double encoding issues introduced in 1.3.2 (#560)
|
||||||
* **1.3.2 (2020-01-11)**
|
* **1.3.2 (2020-01-11)**
|
||||||
* ADDED: Translation for Ukrainian (#533)
|
* ADDED: Translation for Ukrainian (#533)
|
||||||
* ADDED: Option to send a mail with the link, when creating a paste (#398)
|
* ADDED: Option to send a mail with the link, when creating a paste (#398)
|
||||||
|
|||||||
@@ -24,9 +24,9 @@
|
|||||||
"docs" : "https://privatebin.info/codedoc/"
|
"docs" : "https://privatebin.info/codedoc/"
|
||||||
},
|
},
|
||||||
"require" : {
|
"require" : {
|
||||||
"php" : "^5.5.0 || ^7.0",
|
"php" : "^5.6.0 || ^7.0",
|
||||||
"paragonie/random_compat" : "2.0.18",
|
"paragonie/random_compat" : "2.0.18",
|
||||||
"yzalis/identicon" : "1.2.0"
|
"yzalis/identicon" : "2.0.0"
|
||||||
},
|
},
|
||||||
"require-dev" : {
|
"require-dev" : {
|
||||||
"codacy/coverage" : "dev-master",
|
"codacy/coverage" : "dev-master",
|
||||||
@@ -41,4 +41,4 @@
|
|||||||
"config" : {
|
"config" : {
|
||||||
"autoloader-suffix" : "DontChange"
|
"autoloader-suffix" : "DontChange"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
343
composer.lock
generated
343
composer.lock
generated
@@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "5a34d7babc027b5306652cf3a6d8eaeb",
|
"content-hash": "f40dd67214072fe0962989c04c851bd5",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "paragonie/random_compat",
|
"name": "paragonie/random_compat",
|
||||||
@@ -57,16 +57,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "yzalis/identicon",
|
"name": "yzalis/identicon",
|
||||||
"version": "1.2.0",
|
"version": "2.0.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/yzalis/Identicon.git",
|
"url": "https://github.com/yzalis/Identicon.git",
|
||||||
"reference": "228eca74299a45163be40fd82d334bf21e66b86b"
|
"reference": "ff5ed090129cab9bfa2a322857d4a01d107aa0ae"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/yzalis/Identicon/zipball/228eca74299a45163be40fd82d334bf21e66b86b",
|
"url": "https://api.github.com/repos/yzalis/Identicon/zipball/ff5ed090129cab9bfa2a322857d4a01d107aa0ae",
|
||||||
"reference": "228eca74299a45163be40fd82d334bf21e66b86b",
|
"reference": "ff5ed090129cab9bfa2a322857d4a01d107aa0ae",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -105,7 +105,7 @@
|
|||||||
"identicon",
|
"identicon",
|
||||||
"image"
|
"image"
|
||||||
],
|
],
|
||||||
"time": "2017-08-01T14:39:05+00:00"
|
"time": "2019-10-14T09:30:57+00:00"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"packages-dev": [
|
"packages-dev": [
|
||||||
@@ -115,20 +115,21 @@
|
|||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/codacy/php-codacy-coverage.git",
|
"url": "https://github.com/codacy/php-codacy-coverage.git",
|
||||||
"reference": "629d1fd597f91fb072bd822830059fd5145ce49a"
|
"reference": "1852ca987c91ef466ebcfdbdd4e1788b653eaf1d"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/codacy/php-codacy-coverage/zipball/629d1fd597f91fb072bd822830059fd5145ce49a",
|
"url": "https://api.github.com/repos/codacy/php-codacy-coverage/zipball/1852ca987c91ef466ebcfdbdd4e1788b653eaf1d",
|
||||||
"reference": "629d1fd597f91fb072bd822830059fd5145ce49a",
|
"reference": "1852ca987c91ef466ebcfdbdd4e1788b653eaf1d",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"gitonomy/gitlib": ">=1.0",
|
"gitonomy/gitlib": ">=1.0",
|
||||||
"php": ">=5.3.3",
|
"php": ">=5.3.3",
|
||||||
"symfony/console": "~2.5|~3.0|~4.0"
|
"symfony/console": "~2.5|~3.0|~4.0|~5.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
"clue/phar-composer": "^1.1",
|
||||||
"phpunit/phpunit": "~6.5"
|
"phpunit/phpunit": "~6.5"
|
||||||
},
|
},
|
||||||
"bin": [
|
"bin": [
|
||||||
@@ -152,7 +153,7 @@
|
|||||||
],
|
],
|
||||||
"description": "Sends PHP test coverage information to Codacy.",
|
"description": "Sends PHP test coverage information to Codacy.",
|
||||||
"homepage": "https://github.com/codacy/php-codacy-coverage",
|
"homepage": "https://github.com/codacy/php-codacy-coverage",
|
||||||
"time": "2018-04-30T16:23:12+00:00"
|
"time": "2020-01-10T10:52:12+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "codeclimate/php-test-reporter",
|
"name": "codeclimate/php-test-reporter",
|
||||||
@@ -215,16 +216,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "composer/ca-bundle",
|
"name": "composer/ca-bundle",
|
||||||
"version": "1.2.4",
|
"version": "1.2.6",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/composer/ca-bundle.git",
|
"url": "https://github.com/composer/ca-bundle.git",
|
||||||
"reference": "10bb96592168a0f8e8f6dcde3532d9fa50b0b527"
|
"reference": "47fe531de31fca4a1b997f87308e7d7804348f7e"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/10bb96592168a0f8e8f6dcde3532d9fa50b0b527",
|
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/47fe531de31fca4a1b997f87308e7d7804348f7e",
|
||||||
"reference": "10bb96592168a0f8e8f6dcde3532d9fa50b0b527",
|
"reference": "47fe531de31fca4a1b997f87308e7d7804348f7e",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -235,7 +236,7 @@
|
|||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^4.8.35 || ^5.7 || 6.5 - 8",
|
"phpunit/phpunit": "^4.8.35 || ^5.7 || 6.5 - 8",
|
||||||
"psr/log": "^1.0",
|
"psr/log": "^1.0",
|
||||||
"symfony/process": "^2.5 || ^3.0 || ^4.0"
|
"symfony/process": "^2.5 || ^3.0 || ^4.0 || ^5.0"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
@@ -267,20 +268,20 @@
|
|||||||
"ssl",
|
"ssl",
|
||||||
"tls"
|
"tls"
|
||||||
],
|
],
|
||||||
"time": "2019-08-30T08:44:50+00:00"
|
"time": "2020-01-13T10:02:55+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "doctrine/instantiator",
|
"name": "doctrine/instantiator",
|
||||||
"version": "1.2.0",
|
"version": "1.3.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/doctrine/instantiator.git",
|
"url": "https://github.com/doctrine/instantiator.git",
|
||||||
"reference": "a2c590166b2133a4633738648b6b064edae0814a"
|
"reference": "ae466f726242e637cebdd526a7d991b9433bacf1"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/a2c590166b2133a4633738648b6b064edae0814a",
|
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/ae466f726242e637cebdd526a7d991b9433bacf1",
|
||||||
"reference": "a2c590166b2133a4633738648b6b064edae0814a",
|
"reference": "ae466f726242e637cebdd526a7d991b9433bacf1",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -323,28 +324,28 @@
|
|||||||
"constructor",
|
"constructor",
|
||||||
"instantiate"
|
"instantiate"
|
||||||
],
|
],
|
||||||
"time": "2019-03-17T17:37:11+00:00"
|
"time": "2019-10-21T16:45:58+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "gitonomy/gitlib",
|
"name": "gitonomy/gitlib",
|
||||||
"version": "v1.1.0",
|
"version": "v1.2.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/gitonomy/gitlib.git",
|
"url": "https://github.com/gitonomy/gitlib.git",
|
||||||
"reference": "49e599915eae04b734f31e6e88f773d32d921e2e"
|
"reference": "a0bea921266ad1c9626d712e7f8687dcc08ca528"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/gitonomy/gitlib/zipball/49e599915eae04b734f31e6e88f773d32d921e2e",
|
"url": "https://api.github.com/repos/gitonomy/gitlib/zipball/a0bea921266ad1c9626d712e7f8687dcc08ca528",
|
||||||
"reference": "49e599915eae04b734f31e6e88f773d32d921e2e",
|
"reference": "a0bea921266ad1c9626d712e7f8687dcc08ca528",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^5.6 || ^7.0",
|
"php": "^5.6 || ^7.0",
|
||||||
"symfony/process": "^3.4|^4.0"
|
"symfony/process": "^3.4|^4.0|^5.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^5.7|^6.5",
|
"phpunit/phpunit": "^5.7|^6.5|^7.0",
|
||||||
"psr/log": "^1.0"
|
"psr/log": "^1.0"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
@@ -353,7 +354,7 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "1.1-dev"
|
"dev-master": "1.2-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -367,19 +368,25 @@
|
|||||||
],
|
],
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Alexandre Salomé",
|
"name": "Graham Campbell",
|
||||||
"email": "alexandre.salome@gmail.com",
|
"email": "graham@alt-three.com"
|
||||||
"homepage": "http://alexandre-salome.fr"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Julien DIDIER",
|
"name": "Julien Didier",
|
||||||
"email": "genzo.wm@gmail.com",
|
"email": "genzo.wm@gmail.com"
|
||||||
"homepage": "http://www.jdidier.net"
|
},
|
||||||
|
{
|
||||||
|
"name": "Grégoire Pineau",
|
||||||
|
"email": "lyrixx@lyrixx.info"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Alexandre Salomé",
|
||||||
|
"email": "alexandre.salome@gmail.com"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Library for accessing git",
|
"description": "Library for accessing git",
|
||||||
"homepage": "http://gitonomy.com",
|
"homepage": "http://gitonomy.com",
|
||||||
"time": "2019-06-23T09:49:01+00:00"
|
"time": "2019-12-08T12:42:25+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "guzzle/guzzle",
|
"name": "guzzle/guzzle",
|
||||||
@@ -476,16 +483,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "myclabs/deep-copy",
|
"name": "myclabs/deep-copy",
|
||||||
"version": "1.9.3",
|
"version": "1.9.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/myclabs/DeepCopy.git",
|
"url": "https://github.com/myclabs/DeepCopy.git",
|
||||||
"reference": "007c053ae6f31bba39dfa19a7726f56e9763bbea"
|
"reference": "b2c28789e80a97badd14145fda39b545d83ca3ef"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/007c053ae6f31bba39dfa19a7726f56e9763bbea",
|
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/b2c28789e80a97badd14145fda39b545d83ca3ef",
|
||||||
"reference": "007c053ae6f31bba39dfa19a7726f56e9763bbea",
|
"reference": "b2c28789e80a97badd14145fda39b545d83ca3ef",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -520,7 +527,7 @@
|
|||||||
"object",
|
"object",
|
||||||
"object graph"
|
"object graph"
|
||||||
],
|
],
|
||||||
"time": "2019-08-09T12:45:53+00:00"
|
"time": "2020-01-17T21:11:47+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "padraic/humbug_get_contents",
|
"name": "padraic/humbug_get_contents",
|
||||||
@@ -697,16 +704,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpdocumentor/reflection-docblock",
|
"name": "phpdocumentor/reflection-docblock",
|
||||||
"version": "4.3.2",
|
"version": "4.3.4",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
|
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
|
||||||
"reference": "b83ff7cfcfee7827e1e78b637a5904fe6a96698e"
|
"reference": "da3fd972d6bafd628114f7e7e036f45944b62e9c"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/b83ff7cfcfee7827e1e78b637a5904fe6a96698e",
|
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/da3fd972d6bafd628114f7e7e036f45944b62e9c",
|
||||||
"reference": "b83ff7cfcfee7827e1e78b637a5904fe6a96698e",
|
"reference": "da3fd972d6bafd628114f7e7e036f45944b62e9c",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -718,6 +725,7 @@
|
|||||||
"require-dev": {
|
"require-dev": {
|
||||||
"doctrine/instantiator": "^1.0.5",
|
"doctrine/instantiator": "^1.0.5",
|
||||||
"mockery/mockery": "^1.0",
|
"mockery/mockery": "^1.0",
|
||||||
|
"phpdocumentor/type-resolver": "0.4.*",
|
||||||
"phpunit/phpunit": "^6.4"
|
"phpunit/phpunit": "^6.4"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
@@ -744,7 +752,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
|
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
|
||||||
"time": "2019-09-12T14:27:41+00:00"
|
"time": "2019-12-28T18:55:12+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpdocumentor/type-resolver",
|
"name": "phpdocumentor/type-resolver",
|
||||||
@@ -795,33 +803,33 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpspec/prophecy",
|
"name": "phpspec/prophecy",
|
||||||
"version": "1.8.1",
|
"version": "v1.10.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/phpspec/prophecy.git",
|
"url": "https://github.com/phpspec/prophecy.git",
|
||||||
"reference": "1927e75f4ed19131ec9bcc3b002e07fb1173ee76"
|
"reference": "b4400efc9d206e83138e2bb97ed7f5b14b831cd9"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/1927e75f4ed19131ec9bcc3b002e07fb1173ee76",
|
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/b4400efc9d206e83138e2bb97ed7f5b14b831cd9",
|
||||||
"reference": "1927e75f4ed19131ec9bcc3b002e07fb1173ee76",
|
"reference": "b4400efc9d206e83138e2bb97ed7f5b14b831cd9",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"doctrine/instantiator": "^1.0.2",
|
"doctrine/instantiator": "^1.0.2",
|
||||||
"php": "^5.3|^7.0",
|
"php": "^5.3|^7.0",
|
||||||
"phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
|
"phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0",
|
||||||
"sebastian/comparator": "^1.1|^2.0|^3.0",
|
"sebastian/comparator": "^1.2.3|^2.0|^3.0|^4.0",
|
||||||
"sebastian/recursion-context": "^1.0|^2.0|^3.0"
|
"sebastian/recursion-context": "^1.0|^2.0|^3.0|^4.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpspec/phpspec": "^2.5|^3.2",
|
"phpspec/phpspec": "^2.5 || ^3.2",
|
||||||
"phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
|
"phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "1.8.x-dev"
|
"dev-master": "1.10.x-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -854,7 +862,7 @@
|
|||||||
"spy",
|
"spy",
|
||||||
"stub"
|
"stub"
|
||||||
],
|
],
|
||||||
"time": "2019-06-13T12:50:23+00:00"
|
"time": "2020-01-20T15:57:02+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/php-code-coverage",
|
"name": "phpunit/php-code-coverage",
|
||||||
@@ -1298,16 +1306,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "psr/log",
|
"name": "psr/log",
|
||||||
"version": "1.1.0",
|
"version": "1.1.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/php-fig/log.git",
|
"url": "https://github.com/php-fig/log.git",
|
||||||
"reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd"
|
"reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
|
"url": "https://api.github.com/repos/php-fig/log/zipball/446d54b4cb6bf489fc9d75f55843658e6f25d801",
|
||||||
"reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
|
"reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -1316,7 +1324,7 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "1.0.x-dev"
|
"dev-master": "1.1.x-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -1341,7 +1349,7 @@
|
|||||||
"psr",
|
"psr",
|
||||||
"psr-3"
|
"psr-3"
|
||||||
],
|
],
|
||||||
"time": "2018-11-20T15:27:04+00:00"
|
"time": "2019-11-01T11:05:21+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "satooshi/php-coveralls",
|
"name": "satooshi/php-coveralls",
|
||||||
@@ -1920,32 +1928,32 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/config",
|
"name": "symfony/config",
|
||||||
"version": "v4.3.4",
|
"version": "v4.4.4",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/config.git",
|
"url": "https://github.com/symfony/config.git",
|
||||||
"reference": "07d49c0f823e0bc367c6d84e35b61419188a5ece"
|
"reference": "4d3979f54472637169080f802dc82197e21fdcce"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/config/zipball/07d49c0f823e0bc367c6d84e35b61419188a5ece",
|
"url": "https://api.github.com/repos/symfony/config/zipball/4d3979f54472637169080f802dc82197e21fdcce",
|
||||||
"reference": "07d49c0f823e0bc367c6d84e35b61419188a5ece",
|
"reference": "4d3979f54472637169080f802dc82197e21fdcce",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.1.3",
|
"php": "^7.1.3",
|
||||||
"symfony/filesystem": "~3.4|~4.0",
|
"symfony/filesystem": "^3.4|^4.0|^5.0",
|
||||||
"symfony/polyfill-ctype": "~1.8"
|
"symfony/polyfill-ctype": "~1.8"
|
||||||
},
|
},
|
||||||
"conflict": {
|
"conflict": {
|
||||||
"symfony/finder": "<3.4"
|
"symfony/finder": "<3.4"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"symfony/dependency-injection": "~3.4|~4.0",
|
"symfony/event-dispatcher": "^3.4|^4.0|^5.0",
|
||||||
"symfony/event-dispatcher": "~3.4|~4.0",
|
"symfony/finder": "^3.4|^4.0|^5.0",
|
||||||
"symfony/finder": "~3.4|~4.0",
|
"symfony/messenger": "^4.1|^5.0",
|
||||||
"symfony/messenger": "~4.1",
|
"symfony/service-contracts": "^1.1|^2",
|
||||||
"symfony/yaml": "~3.4|~4.0"
|
"symfony/yaml": "^3.4|^4.0|^5.0"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"symfony/yaml": "To use the yaml reference dumper"
|
"symfony/yaml": "To use the yaml reference dumper"
|
||||||
@@ -1953,7 +1961,7 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "4.3-dev"
|
"dev-master": "4.4-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -1980,31 +1988,32 @@
|
|||||||
],
|
],
|
||||||
"description": "Symfony Config Component",
|
"description": "Symfony Config Component",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"time": "2019-08-26T08:26:39+00:00"
|
"time": "2020-01-04T13:00:46+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/console",
|
"name": "symfony/console",
|
||||||
"version": "v4.3.4",
|
"version": "v4.4.4",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/console.git",
|
"url": "https://github.com/symfony/console.git",
|
||||||
"reference": "de63799239b3881b8a08f8481b22348f77ed7b36"
|
"reference": "f512001679f37e6a042b51897ed24a2f05eba656"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/console/zipball/de63799239b3881b8a08f8481b22348f77ed7b36",
|
"url": "https://api.github.com/repos/symfony/console/zipball/f512001679f37e6a042b51897ed24a2f05eba656",
|
||||||
"reference": "de63799239b3881b8a08f8481b22348f77ed7b36",
|
"reference": "f512001679f37e6a042b51897ed24a2f05eba656",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.1.3",
|
"php": "^7.1.3",
|
||||||
"symfony/polyfill-mbstring": "~1.0",
|
"symfony/polyfill-mbstring": "~1.0",
|
||||||
"symfony/polyfill-php73": "^1.8",
|
"symfony/polyfill-php73": "^1.8",
|
||||||
"symfony/service-contracts": "^1.1"
|
"symfony/service-contracts": "^1.1|^2"
|
||||||
},
|
},
|
||||||
"conflict": {
|
"conflict": {
|
||||||
"symfony/dependency-injection": "<3.4",
|
"symfony/dependency-injection": "<3.4",
|
||||||
"symfony/event-dispatcher": "<4.3",
|
"symfony/event-dispatcher": "<4.3|>=5",
|
||||||
|
"symfony/lock": "<4.4",
|
||||||
"symfony/process": "<3.3"
|
"symfony/process": "<3.3"
|
||||||
},
|
},
|
||||||
"provide": {
|
"provide": {
|
||||||
@@ -2012,12 +2021,12 @@
|
|||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"psr/log": "~1.0",
|
"psr/log": "~1.0",
|
||||||
"symfony/config": "~3.4|~4.0",
|
"symfony/config": "^3.4|^4.0|^5.0",
|
||||||
"symfony/dependency-injection": "~3.4|~4.0",
|
"symfony/dependency-injection": "^3.4|^4.0|^5.0",
|
||||||
"symfony/event-dispatcher": "^4.3",
|
"symfony/event-dispatcher": "^4.3",
|
||||||
"symfony/lock": "~3.4|~4.0",
|
"symfony/lock": "^4.4|^5.0",
|
||||||
"symfony/process": "~3.4|~4.0",
|
"symfony/process": "^3.4|^4.0|^5.0",
|
||||||
"symfony/var-dumper": "^4.3"
|
"symfony/var-dumper": "^4.3|^5.0"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"psr/log": "For using the console logger",
|
"psr/log": "For using the console logger",
|
||||||
@@ -2028,7 +2037,7 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "4.3-dev"
|
"dev-master": "4.4-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -2055,20 +2064,20 @@
|
|||||||
],
|
],
|
||||||
"description": "Symfony Console Component",
|
"description": "Symfony Console Component",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"time": "2019-08-26T08:26:39+00:00"
|
"time": "2020-01-25T12:44:29+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/event-dispatcher",
|
"name": "symfony/event-dispatcher",
|
||||||
"version": "v4.3.4",
|
"version": "v4.4.4",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/event-dispatcher.git",
|
"url": "https://github.com/symfony/event-dispatcher.git",
|
||||||
"reference": "429d0a1451d4c9c4abe1959b2986b88794b9b7d2"
|
"reference": "9e3de195e5bc301704dd6915df55892f6dfc208b"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/429d0a1451d4c9c4abe1959b2986b88794b9b7d2",
|
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/9e3de195e5bc301704dd6915df55892f6dfc208b",
|
||||||
"reference": "429d0a1451d4c9c4abe1959b2986b88794b9b7d2",
|
"reference": "9e3de195e5bc301704dd6915df55892f6dfc208b",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -2084,12 +2093,12 @@
|
|||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"psr/log": "~1.0",
|
"psr/log": "~1.0",
|
||||||
"symfony/config": "~3.4|~4.0",
|
"symfony/config": "^3.4|^4.0|^5.0",
|
||||||
"symfony/dependency-injection": "~3.4|~4.0",
|
"symfony/dependency-injection": "^3.4|^4.0|^5.0",
|
||||||
"symfony/expression-language": "~3.4|~4.0",
|
"symfony/expression-language": "^3.4|^4.0|^5.0",
|
||||||
"symfony/http-foundation": "^3.4|^4.0",
|
"symfony/http-foundation": "^3.4|^4.0|^5.0",
|
||||||
"symfony/service-contracts": "^1.1",
|
"symfony/service-contracts": "^1.1|^2",
|
||||||
"symfony/stopwatch": "~3.4|~4.0"
|
"symfony/stopwatch": "^3.4|^4.0|^5.0"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"symfony/dependency-injection": "",
|
"symfony/dependency-injection": "",
|
||||||
@@ -2098,7 +2107,7 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "4.3-dev"
|
"dev-master": "4.4-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -2125,20 +2134,20 @@
|
|||||||
],
|
],
|
||||||
"description": "Symfony EventDispatcher Component",
|
"description": "Symfony EventDispatcher Component",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"time": "2019-08-26T08:55:16+00:00"
|
"time": "2020-01-10T21:54:01+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/event-dispatcher-contracts",
|
"name": "symfony/event-dispatcher-contracts",
|
||||||
"version": "v1.1.5",
|
"version": "v1.1.7",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/event-dispatcher-contracts.git",
|
"url": "https://github.com/symfony/event-dispatcher-contracts.git",
|
||||||
"reference": "c61766f4440ca687de1084a5c00b08e167a2575c"
|
"reference": "c43ab685673fb6c8d84220c77897b1d6cdbe1d18"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/c61766f4440ca687de1084a5c00b08e167a2575c",
|
"url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/c43ab685673fb6c8d84220c77897b1d6cdbe1d18",
|
||||||
"reference": "c61766f4440ca687de1084a5c00b08e167a2575c",
|
"reference": "c43ab685673fb6c8d84220c77897b1d6cdbe1d18",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -2183,30 +2192,30 @@
|
|||||||
"interoperability",
|
"interoperability",
|
||||||
"standards"
|
"standards"
|
||||||
],
|
],
|
||||||
"time": "2019-06-20T06:46:26+00:00"
|
"time": "2019-09-17T09:54:03+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/filesystem",
|
"name": "symfony/filesystem",
|
||||||
"version": "v4.3.4",
|
"version": "v5.0.4",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/filesystem.git",
|
"url": "https://github.com/symfony/filesystem.git",
|
||||||
"reference": "9abbb7ef96a51f4d7e69627bc6f63307994e4263"
|
"reference": "3afadc0f57cd74f86379d073e694b0f2cda2a88c"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/filesystem/zipball/9abbb7ef96a51f4d7e69627bc6f63307994e4263",
|
"url": "https://api.github.com/repos/symfony/filesystem/zipball/3afadc0f57cd74f86379d073e694b0f2cda2a88c",
|
||||||
"reference": "9abbb7ef96a51f4d7e69627bc6f63307994e4263",
|
"reference": "3afadc0f57cd74f86379d073e694b0f2cda2a88c",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.1.3",
|
"php": "^7.2.5",
|
||||||
"symfony/polyfill-ctype": "~1.8"
|
"symfony/polyfill-ctype": "~1.8"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "4.3-dev"
|
"dev-master": "5.0-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -2233,20 +2242,20 @@
|
|||||||
],
|
],
|
||||||
"description": "Symfony Filesystem Component",
|
"description": "Symfony Filesystem Component",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"time": "2019-08-20T14:07:54+00:00"
|
"time": "2020-01-21T08:40:24+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-ctype",
|
"name": "symfony/polyfill-ctype",
|
||||||
"version": "v1.12.0",
|
"version": "v1.13.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-ctype.git",
|
"url": "https://github.com/symfony/polyfill-ctype.git",
|
||||||
"reference": "550ebaac289296ce228a706d0867afc34687e3f4"
|
"reference": "f8f0b461be3385e56d6de3dbb5a0df24c0c275e3"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/550ebaac289296ce228a706d0867afc34687e3f4",
|
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/f8f0b461be3385e56d6de3dbb5a0df24c0c275e3",
|
||||||
"reference": "550ebaac289296ce228a706d0867afc34687e3f4",
|
"reference": "f8f0b461be3385e56d6de3dbb5a0df24c0c275e3",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -2258,7 +2267,7 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "1.12-dev"
|
"dev-master": "1.13-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -2291,20 +2300,20 @@
|
|||||||
"polyfill",
|
"polyfill",
|
||||||
"portable"
|
"portable"
|
||||||
],
|
],
|
||||||
"time": "2019-08-06T08:03:45+00:00"
|
"time": "2019-11-27T13:56:44+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-mbstring",
|
"name": "symfony/polyfill-mbstring",
|
||||||
"version": "v1.12.0",
|
"version": "v1.13.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
||||||
"reference": "b42a2f66e8f1b15ccf25652c3424265923eb4f17"
|
"reference": "7b4aab9743c30be783b73de055d24a39cf4b954f"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/b42a2f66e8f1b15ccf25652c3424265923eb4f17",
|
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/7b4aab9743c30be783b73de055d24a39cf4b954f",
|
||||||
"reference": "b42a2f66e8f1b15ccf25652c3424265923eb4f17",
|
"reference": "7b4aab9743c30be783b73de055d24a39cf4b954f",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -2316,7 +2325,7 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "1.12-dev"
|
"dev-master": "1.13-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -2350,20 +2359,20 @@
|
|||||||
"portable",
|
"portable",
|
||||||
"shim"
|
"shim"
|
||||||
],
|
],
|
||||||
"time": "2019-08-06T08:03:45+00:00"
|
"time": "2019-11-27T14:18:11+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-php73",
|
"name": "symfony/polyfill-php73",
|
||||||
"version": "v1.12.0",
|
"version": "v1.13.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-php73.git",
|
"url": "https://github.com/symfony/polyfill-php73.git",
|
||||||
"reference": "2ceb49eaccb9352bff54d22570276bb75ba4a188"
|
"reference": "4b0e2222c55a25b4541305a053013d5647d3a25f"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/2ceb49eaccb9352bff54d22570276bb75ba4a188",
|
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/4b0e2222c55a25b4541305a053013d5647d3a25f",
|
||||||
"reference": "2ceb49eaccb9352bff54d22570276bb75ba4a188",
|
"reference": "4b0e2222c55a25b4541305a053013d5647d3a25f",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -2372,7 +2381,7 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "1.12-dev"
|
"dev-master": "1.13-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -2408,29 +2417,29 @@
|
|||||||
"portable",
|
"portable",
|
||||||
"shim"
|
"shim"
|
||||||
],
|
],
|
||||||
"time": "2019-08-06T08:03:45+00:00"
|
"time": "2019-11-27T16:25:15+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/process",
|
"name": "symfony/process",
|
||||||
"version": "v4.3.4",
|
"version": "v5.0.4",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/process.git",
|
"url": "https://github.com/symfony/process.git",
|
||||||
"reference": "e89969c00d762349f078db1128506f7f3dcc0d4a"
|
"reference": "f9ffd870f5ac01abec7b2b5e15f904ca9400ecd1"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/process/zipball/e89969c00d762349f078db1128506f7f3dcc0d4a",
|
"url": "https://api.github.com/repos/symfony/process/zipball/f9ffd870f5ac01abec7b2b5e15f904ca9400ecd1",
|
||||||
"reference": "e89969c00d762349f078db1128506f7f3dcc0d4a",
|
"reference": "f9ffd870f5ac01abec7b2b5e15f904ca9400ecd1",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.1.3"
|
"php": "^7.2.5"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "4.3-dev"
|
"dev-master": "5.0-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -2457,24 +2466,24 @@
|
|||||||
],
|
],
|
||||||
"description": "Symfony Process Component",
|
"description": "Symfony Process Component",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"time": "2019-08-26T08:26:39+00:00"
|
"time": "2020-01-09T09:53:06+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/service-contracts",
|
"name": "symfony/service-contracts",
|
||||||
"version": "v1.1.6",
|
"version": "v2.0.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/service-contracts.git",
|
"url": "https://github.com/symfony/service-contracts.git",
|
||||||
"reference": "ea7263d6b6d5f798b56a45a5b8d686725f2719a3"
|
"reference": "144c5e51266b281231e947b51223ba14acf1a749"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/ea7263d6b6d5f798b56a45a5b8d686725f2719a3",
|
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/144c5e51266b281231e947b51223ba14acf1a749",
|
||||||
"reference": "ea7263d6b6d5f798b56a45a5b8d686725f2719a3",
|
"reference": "144c5e51266b281231e947b51223ba14acf1a749",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.1.3",
|
"php": "^7.2.5",
|
||||||
"psr/container": "^1.0"
|
"psr/container": "^1.0"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
@@ -2483,7 +2492,7 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "1.1-dev"
|
"dev-master": "2.0-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -2515,30 +2524,30 @@
|
|||||||
"interoperability",
|
"interoperability",
|
||||||
"standards"
|
"standards"
|
||||||
],
|
],
|
||||||
"time": "2019-08-20T14:44:19+00:00"
|
"time": "2019-11-18T17:27:11+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/stopwatch",
|
"name": "symfony/stopwatch",
|
||||||
"version": "v4.3.4",
|
"version": "v4.4.4",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/stopwatch.git",
|
"url": "https://github.com/symfony/stopwatch.git",
|
||||||
"reference": "1e4ff456bd625be5032fac9be4294e60442e9b71"
|
"reference": "abc08d7c48987829bac301347faa10f7e8bbf4fb"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/stopwatch/zipball/1e4ff456bd625be5032fac9be4294e60442e9b71",
|
"url": "https://api.github.com/repos/symfony/stopwatch/zipball/abc08d7c48987829bac301347faa10f7e8bbf4fb",
|
||||||
"reference": "1e4ff456bd625be5032fac9be4294e60442e9b71",
|
"reference": "abc08d7c48987829bac301347faa10f7e8bbf4fb",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.1.3",
|
"php": "^7.1.3",
|
||||||
"symfony/service-contracts": "^1.0"
|
"symfony/service-contracts": "^1.0|^2"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "4.3-dev"
|
"dev-master": "4.4-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -2565,20 +2574,20 @@
|
|||||||
],
|
],
|
||||||
"description": "Symfony Stopwatch Component",
|
"description": "Symfony Stopwatch Component",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"time": "2019-08-07T11:52:19+00:00"
|
"time": "2020-01-04T13:00:46+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/yaml",
|
"name": "symfony/yaml",
|
||||||
"version": "v4.3.4",
|
"version": "v4.4.4",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/yaml.git",
|
"url": "https://github.com/symfony/yaml.git",
|
||||||
"reference": "5a0b7c32dc3ec56fd4abae8a4a71b0cf05013686"
|
"reference": "cd014e425b3668220adb865f53bff64b3ad21767"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/yaml/zipball/5a0b7c32dc3ec56fd4abae8a4a71b0cf05013686",
|
"url": "https://api.github.com/repos/symfony/yaml/zipball/cd014e425b3668220adb865f53bff64b3ad21767",
|
||||||
"reference": "5a0b7c32dc3ec56fd4abae8a4a71b0cf05013686",
|
"reference": "cd014e425b3668220adb865f53bff64b3ad21767",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -2589,7 +2598,7 @@
|
|||||||
"symfony/console": "<3.4"
|
"symfony/console": "<3.4"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"symfony/console": "~3.4|~4.0"
|
"symfony/console": "^3.4|^4.0|^5.0"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"symfony/console": "For validating YAML files using the lint command"
|
"symfony/console": "For validating YAML files using the lint command"
|
||||||
@@ -2597,7 +2606,7 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "4.3-dev"
|
"dev-master": "4.4-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -2624,35 +2633,33 @@
|
|||||||
],
|
],
|
||||||
"description": "Symfony Yaml Component",
|
"description": "Symfony Yaml Component",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"time": "2019-08-20T14:27:59+00:00"
|
"time": "2020-01-21T11:12:16+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "webmozart/assert",
|
"name": "webmozart/assert",
|
||||||
"version": "1.5.0",
|
"version": "1.6.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/webmozart/assert.git",
|
"url": "https://github.com/webmozart/assert.git",
|
||||||
"reference": "88e6d84706d09a236046d686bbea96f07b3a34f4"
|
"reference": "573381c0a64f155a0d9a23f4b0c797194805b925"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/webmozart/assert/zipball/88e6d84706d09a236046d686bbea96f07b3a34f4",
|
"url": "https://api.github.com/repos/webmozart/assert/zipball/573381c0a64f155a0d9a23f4b0c797194805b925",
|
||||||
"reference": "88e6d84706d09a236046d686bbea96f07b3a34f4",
|
"reference": "573381c0a64f155a0d9a23f4b0c797194805b925",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^5.3.3 || ^7.0",
|
"php": "^5.3.3 || ^7.0",
|
||||||
"symfony/polyfill-ctype": "^1.8"
|
"symfony/polyfill-ctype": "^1.8"
|
||||||
},
|
},
|
||||||
|
"conflict": {
|
||||||
|
"vimeo/psalm": "<3.6.0"
|
||||||
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^4.8.36 || ^7.5.13"
|
"phpunit/phpunit": "^4.8.36 || ^7.5.13"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
|
||||||
"branch-alias": {
|
|
||||||
"dev-master": "1.3-dev"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Webmozart\\Assert\\": "src/"
|
"Webmozart\\Assert\\": "src/"
|
||||||
@@ -2674,7 +2681,7 @@
|
|||||||
"check",
|
"check",
|
||||||
"validate"
|
"validate"
|
||||||
],
|
],
|
||||||
"time": "2019-08-24T08:43:50+00:00"
|
"time": "2019-11-24T13:36:37+00:00"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"aliases": [],
|
"aliases": [],
|
||||||
@@ -2686,7 +2693,7 @@
|
|||||||
"prefer-stable": false,
|
"prefer-stable": false,
|
||||||
"prefer-lowest": false,
|
"prefer-lowest": false,
|
||||||
"platform": {
|
"platform": {
|
||||||
"php": "^5.5.0 || ^7.0"
|
"php": "^5.6.0 || ^7.0"
|
||||||
},
|
},
|
||||||
"platform-dev": []
|
"platform-dev": []
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -172,9 +172,9 @@
|
|||||||
"Notice:":
|
"Notice:":
|
||||||
"Hinweis:",
|
"Hinweis:",
|
||||||
"This link will expire after %s.":
|
"This link will expire after %s.":
|
||||||
"Dieser Link wird in %s ablaufen.",
|
"Dieser Link wird um %s ablaufen.",
|
||||||
"This link can only be accessed once, do not use back or refresh button in your browser.":
|
"This link can only be accessed once, do not use back or refresh button in your browser.":
|
||||||
"Dieser Link kann nur einmal geöffnet werden, verwende nicht den \"Zurück\" oder \"Neu laden\" Knopf Deines Browsers.",
|
"Dieser Link kann nur einmal geöffnet werden, verwende nicht den Zurück- oder Neu-laden-Knopf Deines Browsers.",
|
||||||
"Link:":
|
"Link:":
|
||||||
"Link:",
|
"Link:",
|
||||||
"Recipient may become aware of your timezone, convert time to UTC?":
|
"Recipient may become aware of your timezone, convert time to UTC?":
|
||||||
|
|||||||
253
js/privatebin.js
253
js/privatebin.js
@@ -18,14 +18,14 @@ jQuery.fn.draghover = function() {
|
|||||||
return this.each(function() {
|
return this.each(function() {
|
||||||
let collection = $(),
|
let collection = $(),
|
||||||
self = $(this);
|
self = $(this);
|
||||||
|
|
||||||
self.on('dragenter', function(e) {
|
self.on('dragenter', function(e) {
|
||||||
if (collection.length === 0) {
|
if (collection.length === 0) {
|
||||||
self.trigger('draghoverstart');
|
self.trigger('draghoverstart');
|
||||||
}
|
}
|
||||||
collection = collection.add(e.target);
|
collection = collection.add(e.target);
|
||||||
});
|
});
|
||||||
|
|
||||||
self.on('dragleave drop', function(e) {
|
self.on('dragleave drop', function(e) {
|
||||||
collection = collection.not(e.target);
|
collection = collection.not(e.target);
|
||||||
if (collection.length === 0) {
|
if (collection.length === 0) {
|
||||||
@@ -209,6 +209,64 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
'=': '='
|
'=': '='
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* number of seconds in a minute
|
||||||
|
*
|
||||||
|
* @name Helper.minute
|
||||||
|
* @private
|
||||||
|
* @enum {number}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
const minute = 60;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* number of seconds in an hour
|
||||||
|
*
|
||||||
|
* = 60 * 60 seconds
|
||||||
|
*
|
||||||
|
* @name Helper.minute
|
||||||
|
* @private
|
||||||
|
* @enum {number}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
const hour = 3600;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* number of seconds in a day
|
||||||
|
*
|
||||||
|
* = 60 * 60 * 24 seconds
|
||||||
|
*
|
||||||
|
* @name Helper.day
|
||||||
|
* @private
|
||||||
|
* @enum {number}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
const day = 86400;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* number of seconds in a month (30 days, an approximation)
|
||||||
|
*
|
||||||
|
* = 60 * 60 * 24 * 30 seconds
|
||||||
|
*
|
||||||
|
* @name Helper.month
|
||||||
|
* @private
|
||||||
|
* @enum {number}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
const month = 2592000;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* number of seconds in a non-leap year
|
||||||
|
*
|
||||||
|
* = 60 * 60 * 24 * 365 seconds
|
||||||
|
*
|
||||||
|
* @name Helper.year
|
||||||
|
* @private
|
||||||
|
* @enum {number}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
const year = 31536000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* cache for script location
|
* cache for script location
|
||||||
*
|
*
|
||||||
@@ -229,31 +287,67 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
me.secondsToHuman = function(seconds)
|
me.secondsToHuman = function(seconds)
|
||||||
{
|
{
|
||||||
let v;
|
let v;
|
||||||
if (seconds < 60)
|
if (seconds < minute)
|
||||||
{
|
{
|
||||||
v = Math.floor(seconds);
|
v = Math.floor(seconds);
|
||||||
return [v, 'second'];
|
return [v, 'second'];
|
||||||
}
|
}
|
||||||
if (seconds < 60 * 60)
|
if (seconds < hour)
|
||||||
{
|
{
|
||||||
v = Math.floor(seconds / 60);
|
v = Math.floor(seconds / minute);
|
||||||
return [v, 'minute'];
|
return [v, 'minute'];
|
||||||
}
|
}
|
||||||
if (seconds < 60 * 60 * 24)
|
if (seconds < day)
|
||||||
{
|
{
|
||||||
v = Math.floor(seconds / (60 * 60));
|
v = Math.floor(seconds / hour);
|
||||||
return [v, 'hour'];
|
return [v, 'hour'];
|
||||||
}
|
}
|
||||||
// If less than 2 months, display in days:
|
// If less than 2 months, display in days:
|
||||||
if (seconds < 60 * 60 * 24 * 60)
|
if (seconds < (2 * month))
|
||||||
{
|
{
|
||||||
v = Math.floor(seconds / (60 * 60 * 24));
|
v = Math.floor(seconds / day);
|
||||||
return [v, 'day'];
|
return [v, 'day'];
|
||||||
}
|
}
|
||||||
v = Math.floor(seconds / (60 * 60 * 24 * 30));
|
v = Math.floor(seconds / month);
|
||||||
return [v, 'month'];
|
return [v, 'month'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* converts a duration string into seconds
|
||||||
|
*
|
||||||
|
* The string is expected to be optional digits, followed by a time.
|
||||||
|
* Supported times are: min, hour, day, month, year, never
|
||||||
|
* Examples: 5min, 13hour, never
|
||||||
|
*
|
||||||
|
* @name Helper.durationToSeconds
|
||||||
|
* @function
|
||||||
|
* @param {String} duration
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
me.durationToSeconds = function(duration)
|
||||||
|
{
|
||||||
|
let pieces = duration.split(/\d+/),
|
||||||
|
factor = pieces[0] || 0,
|
||||||
|
timespan = pieces[1] || pieces[0];
|
||||||
|
switch (timespan)
|
||||||
|
{
|
||||||
|
case 'min':
|
||||||
|
return factor * minute;
|
||||||
|
case 'hour':
|
||||||
|
return factor * hour;
|
||||||
|
case 'day':
|
||||||
|
return factor * day;
|
||||||
|
case 'month':
|
||||||
|
return factor * month;
|
||||||
|
case 'year':
|
||||||
|
return factor * year;
|
||||||
|
case 'never':
|
||||||
|
return 0;
|
||||||
|
default:
|
||||||
|
return factor;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* text range selection
|
* text range selection
|
||||||
*
|
*
|
||||||
@@ -280,6 +374,31 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* formats the text that needs to be formatted, so DomPurify can properly escape it.
|
||||||
|
*
|
||||||
|
* @name Helper.preformatTextForDomPurify
|
||||||
|
* @function
|
||||||
|
* @param {string} html
|
||||||
|
* @param {'markdown'|'syntaxhighlighting'|'plaintext'} text
|
||||||
|
* @return {string} new text
|
||||||
|
*/
|
||||||
|
me.preformatTextForDomPurify = function(text, format)
|
||||||
|
{
|
||||||
|
if (!format) {
|
||||||
|
throw new TypeError('invalid format parameter');
|
||||||
|
}
|
||||||
|
|
||||||
|
// encode < to make sure DomPurify does not interpret e.g. HTML or XML markup as code
|
||||||
|
// cf. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/xmp#Summary
|
||||||
|
// As Markdown, by definition, is/allows HTML code, we do not do anything there.
|
||||||
|
if (format !== 'markdown') {
|
||||||
|
// one character is enough, as this is not security-relevant (all output will go through DOMPurify later)
|
||||||
|
text = text.replace(/</g, '<');
|
||||||
|
}
|
||||||
|
return text;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* convert URLs to clickable links.
|
* convert URLs to clickable links.
|
||||||
*
|
*
|
||||||
@@ -298,7 +417,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
me.urls2links = function(html)
|
me.urls2links = function(html)
|
||||||
{
|
{
|
||||||
return html.replace(
|
return html.replace(
|
||||||
/(((https?|ftp):\/\/[\w?!=&.\/-;#@~%+*-]+(?![\w\s?!&.\/;#~%"=-]*>))|((magnet):[\w?=&.\/-;#@~%+*-]+))/ig,
|
/(((https?|ftp):\/\/[\w?!=&.\/-;#@~%+*-]+(?![\w\s?!&.\/;#~%"=-]>))|((magnet):[\w?=&.\/-;#@~%+*-]+))/ig,
|
||||||
'<a href="$1" rel="nofollow">$1</a>'
|
'<a href="$1" rel="nofollow">$1</a>'
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -424,7 +543,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* calculate expiration date given initial date and expiration period
|
* calculate expiration date given initial date and expiration period
|
||||||
*
|
*
|
||||||
* @name Helper.calculateExpirationDate
|
* @name Helper.calculateExpirationDate
|
||||||
* @function
|
* @function
|
||||||
* @param {Date} initialDate - may not be empty
|
* @param {Date} initialDate - may not be empty
|
||||||
@@ -432,24 +551,12 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
* @return {Date}
|
* @return {Date}
|
||||||
*/
|
*/
|
||||||
me.calculateExpirationDate = function(initialDate, expirationDisplayStringOrSecondsToExpire) {
|
me.calculateExpirationDate = function(initialDate, expirationDisplayStringOrSecondsToExpire) {
|
||||||
let expirationDate = new Date(initialDate);
|
let expirationDate = new Date(initialDate),
|
||||||
|
secondsToExpiration = expirationDisplayStringOrSecondsToExpire;
|
||||||
const expirationDisplayStringToSecondsDict = {
|
|
||||||
'5min': 300,
|
|
||||||
'10min': 600,
|
|
||||||
'1hour': 3500,
|
|
||||||
'1day': 86400,
|
|
||||||
'1week': 604800,
|
|
||||||
'1month': 2592000,
|
|
||||||
'1year': 31536000,
|
|
||||||
'never': 0
|
|
||||||
};
|
|
||||||
|
|
||||||
let secondsToExpiration = expirationDisplayStringOrSecondsToExpire;
|
|
||||||
if (typeof expirationDisplayStringOrSecondsToExpire === 'string') {
|
if (typeof expirationDisplayStringOrSecondsToExpire === 'string') {
|
||||||
secondsToExpiration = expirationDisplayStringToSecondsDict[expirationDisplayStringOrSecondsToExpire];
|
secondsToExpiration = me.durationToSeconds(expirationDisplayStringOrSecondsToExpire);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof secondsToExpiration !== 'number') {
|
if (typeof secondsToExpiration !== 'number') {
|
||||||
throw new Error('Cannot calculate expiration date.');
|
throw new Error('Cannot calculate expiration date.');
|
||||||
}
|
}
|
||||||
@@ -2422,18 +2529,25 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// escape HTML entities, link URLs, sanitize
|
let processedText = Helper.preformatTextForDomPurify(text, format);
|
||||||
const escapedLinkedText = Helper.urls2links(text),
|
|
||||||
sanitizedLinkedText = DOMPurify.sanitize(
|
// link URLs
|
||||||
escapedLinkedText, {
|
processedText = Helper.urls2links(processedText);
|
||||||
ALLOWED_TAGS: ['a'],
|
|
||||||
ALLOWED_ATTR: ['href', 'rel']
|
|
||||||
}
|
|
||||||
);
|
|
||||||
$plainText.html(sanitizedLinkedText);
|
|
||||||
$prettyPrint.html(sanitizedLinkedText);
|
|
||||||
|
|
||||||
switch (format) {
|
switch (format) {
|
||||||
|
case 'syntaxhighlighting':
|
||||||
|
// yes, this is really needed to initialize the environment
|
||||||
|
if (typeof prettyPrint === 'function')
|
||||||
|
{
|
||||||
|
prettyPrint();
|
||||||
|
}
|
||||||
|
|
||||||
|
$prettyPrint.html(
|
||||||
|
DOMPurify.sanitize(
|
||||||
|
prettyPrintOne(processedText, null, true)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
break;
|
||||||
case 'markdown':
|
case 'markdown':
|
||||||
const converter = new showdown.Converter({
|
const converter = new showdown.Converter({
|
||||||
strikethrough: true,
|
strikethrough: true,
|
||||||
@@ -2445,29 +2559,27 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
// let showdown convert the HTML and sanitize HTML *afterwards*!
|
// let showdown convert the HTML and sanitize HTML *afterwards*!
|
||||||
$plainText.html(
|
$plainText.html(
|
||||||
DOMPurify.sanitize(
|
DOMPurify.sanitize(
|
||||||
|
// use original text, because showdown handles autolinking on it's own
|
||||||
converter.makeHtml(text)
|
converter.makeHtml(text)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
// add table classes from bootstrap css
|
// add table classes from bootstrap css
|
||||||
$plainText.find('table').addClass('table-condensed table-bordered');
|
$plainText.find('table').addClass('table-condensed table-bordered');
|
||||||
break;
|
break;
|
||||||
case 'syntaxhighlighting':
|
|
||||||
// yes, this is really needed to initialize the environment
|
|
||||||
if (typeof prettyPrint === 'function')
|
|
||||||
{
|
|
||||||
prettyPrint();
|
|
||||||
}
|
|
||||||
|
|
||||||
$prettyPrint.html(
|
|
||||||
DOMPurify.sanitize(
|
|
||||||
prettyPrintOne(escapedLinkedText, null, true)
|
|
||||||
)
|
|
||||||
);
|
|
||||||
// fall through, as the rest is the same
|
|
||||||
default: // = 'plaintext'
|
default: // = 'plaintext'
|
||||||
$prettyPrint.css('white-space', 'pre-wrap');
|
$prettyPrint.html(DOMPurify.sanitize(
|
||||||
$prettyPrint.css('word-break', 'normal');
|
processedText, {
|
||||||
$prettyPrint.removeClass('prettyprint');
|
ALLOWED_TAGS: ['a'],
|
||||||
|
ALLOWED_ATTR: ['href', 'rel']
|
||||||
|
}
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
// set block style for non-Markdown formatting
|
||||||
|
if (format !== 'markdown') {
|
||||||
|
$prettyPrint.css('white-space', 'pre-wrap');
|
||||||
|
$prettyPrint.css('word-break', 'normal');
|
||||||
|
$prettyPrint.removeClass('prettyprint');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3231,7 +3343,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
*/
|
*/
|
||||||
me.addComment = function(comment, commentText, nickname)
|
me.addComment = function(comment, commentText, nickname)
|
||||||
{
|
{
|
||||||
if (commentText === '') {
|
if (!commentText) {
|
||||||
commentText = 'comment decryption failed';
|
commentText = 'comment decryption failed';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3241,6 +3353,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
const $commentEntryData = $commentEntry.find('div.commentdata');
|
const $commentEntryData = $commentEntry.find('div.commentdata');
|
||||||
|
|
||||||
// set & parse text
|
// set & parse text
|
||||||
|
commentText = Helper.preformatTextForDomPurify(commentText, 'plaintext');
|
||||||
$commentEntryData.html(
|
$commentEntryData.html(
|
||||||
DOMPurify.sanitize(
|
DOMPurify.sanitize(
|
||||||
Helper.urls2links(commentText), {
|
Helper.urls2links(commentText), {
|
||||||
@@ -3653,11 +3766,11 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Template Email body.
|
* Template Email body.
|
||||||
*
|
*
|
||||||
* @name TopNav.templateEmailBody
|
* @name TopNav.templateEmailBody
|
||||||
* @private
|
* @private
|
||||||
* @param {string} expirationDateString
|
* @param {string} expirationDateString
|
||||||
* @param {bool} isBurnafterreading
|
* @param {bool} isBurnafterreading
|
||||||
*/
|
*/
|
||||||
function templateEmailBody(expirationDateString, isBurnafterreading)
|
function templateEmailBody(expirationDateString, isBurnafterreading)
|
||||||
{
|
{
|
||||||
@@ -3695,10 +3808,10 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Trigger Email send.
|
* Trigger Email send.
|
||||||
*
|
*
|
||||||
* @name TopNav.triggerEmailSend
|
* @name TopNav.triggerEmailSend
|
||||||
* @private
|
* @private
|
||||||
* @param {string} emailBody
|
* @param {string} emailBody
|
||||||
*/
|
*/
|
||||||
function triggerEmailSend(emailBody)
|
function triggerEmailSend(emailBody)
|
||||||
{
|
{
|
||||||
@@ -3911,7 +4024,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* show the "email" button
|
* show the "email" button
|
||||||
*
|
*
|
||||||
* @name TopNav.showEmailbutton
|
* @name TopNav.showEmailbutton
|
||||||
* @function
|
* @function
|
||||||
* @param {int|undefined} optionalRemainingTimeInSeconds
|
* @param {int|undefined} optionalRemainingTimeInSeconds
|
||||||
@@ -3939,7 +4052,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* hide the "email" button
|
* hide the "email" button
|
||||||
*
|
*
|
||||||
* @name TopNav.hideEmailButton
|
* @name TopNav.hideEmailButton
|
||||||
* @function
|
* @function
|
||||||
*/
|
*/
|
||||||
@@ -3973,7 +4086,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* only hides the qr code button
|
* only hides the qr code button
|
||||||
*
|
*
|
||||||
* @name TopNav.hideQrCodeButton
|
* @name TopNav.hideQrCodeButton
|
||||||
* @function
|
* @function
|
||||||
*/
|
*/
|
||||||
@@ -3984,7 +4097,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* hide all irrelevant buttons when viewing burn after reading paste
|
* hide all irrelevant buttons when viewing burn after reading paste
|
||||||
*
|
*
|
||||||
* @name TopNav.hideBurnAfterReadingButtons
|
* @name TopNav.hideBurnAfterReadingButtons
|
||||||
* @function
|
* @function
|
||||||
*/
|
*/
|
||||||
@@ -4020,7 +4133,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* hides the custom attachment
|
* hides the custom attachment
|
||||||
*
|
*
|
||||||
* @name TopNav.hideCustomAttachment
|
* @name TopNav.hideCustomAttachment
|
||||||
* @function
|
* @function
|
||||||
*/
|
*/
|
||||||
@@ -4144,7 +4257,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Highlight file upload
|
* Highlight file upload
|
||||||
*
|
*
|
||||||
* @name TopNav.highlightFileupload
|
* @name TopNav.highlightFileupload
|
||||||
* @function
|
* @function
|
||||||
*/
|
*/
|
||||||
@@ -4163,7 +4276,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* set the format on bootstrap templates in dropdown programmatically
|
* set the format on bootstrap templates in dropdown programmatically
|
||||||
*
|
*
|
||||||
* @name TopNav.setFormat
|
* @name TopNav.setFormat
|
||||||
* @function
|
* @function
|
||||||
*/
|
*/
|
||||||
@@ -4174,7 +4287,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* returns if attachment dropdown is readonly, not editable
|
* returns if attachment dropdown is readonly, not editable
|
||||||
*
|
*
|
||||||
* @name TopNav.isAttachmentReadonly
|
* @name TopNav.isAttachmentReadonly
|
||||||
* @function
|
* @function
|
||||||
* @return {bool}
|
* @return {bool}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class Controller
|
|||||||
*
|
*
|
||||||
* @const string
|
* @const string
|
||||||
*/
|
*/
|
||||||
const MIN_PHP_VERSION = '5.5.0';
|
const MIN_PHP_VERSION = '5.6.0';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* show the same error message if the paste expired or does not exist
|
* show the same error message if the paste expired or does not exist
|
||||||
@@ -276,9 +276,7 @@ class Controller
|
|||||||
// accessing this method ensures that the paste would be
|
// accessing this method ensures that the paste would be
|
||||||
// deleted if it has already expired
|
// deleted if it has already expired
|
||||||
$paste->get();
|
$paste->get();
|
||||||
if (
|
if (hash_equals($paste->getDeleteToken(), $deletetoken)) {
|
||||||
Filter::slowEquals($deletetoken, $paste->getDeleteToken())
|
|
||||||
) {
|
|
||||||
// Paste exists and deletion token is valid: Delete the paste.
|
// Paste exists and deletion token is valid: Delete the paste.
|
||||||
$paste->delete();
|
$paste->delete();
|
||||||
$this->_status = 'Paste was properly deleted.';
|
$this->_status = 'Paste was properly deleted.';
|
||||||
|
|||||||
@@ -68,23 +68,4 @@ class Filter
|
|||||||
}
|
}
|
||||||
return number_format($size, ($i ? 2 : 0), '.', ' ') . ' ' . I18n::_($iec[$i]);
|
return number_format($size, ($i ? 2 : 0), '.', ' ') . ' ' . I18n::_($iec[$i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* fixed time string comparison operation to prevent timing attacks
|
|
||||||
* https://crackstation.net/hashing-security.htm?=rd#slowequals
|
|
||||||
*
|
|
||||||
* @access public
|
|
||||||
* @static
|
|
||||||
* @param string $a
|
|
||||||
* @param string $b
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
public static function slowEquals($a, $b)
|
|
||||||
{
|
|
||||||
$diff = strlen($a) ^ strlen($b);
|
|
||||||
for ($i = 0; $i < strlen($a) && $i < strlen($b); ++$i) {
|
|
||||||
$diff |= ord($a[$i]) ^ ord($b[$i]);
|
|
||||||
}
|
|
||||||
return $diff === 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,38 +41,38 @@ if ($SYNTAXHIGHLIGHTING):
|
|||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<noscript><link type="text/css" rel="stylesheet" href="css/noscript.css" /></noscript>
|
<noscript><link type="text/css" rel="stylesheet" href="css/noscript.css" /></noscript>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/jquery-3.4.1.js" integrity="sha512-bnIvzh6FU75ZKxp0GXLH9bewza/OIw6dLVh9ICg0gogclmYGguQJWl8U30WpbsGTqbIiAwxTsbe76DErLq5EDQ==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/jquery-3.4.1.js" integrity="sha512-9anGruNHwVXk3XlsUXFrdEe8Iq5EdB/Otrz+4C+VWtQGPThhPyQRCKPh8+H1QPyu2NmEi5oPuCPACVXPmhnvrQ==" crossorigin="anonymous"></script>
|
||||||
<?php
|
<?php
|
||||||
if ($QRCODE):
|
if ($QRCODE):
|
||||||
?>
|
?>
|
||||||
<script async type="text/javascript" data-cfasync="false" src="js/kjua-0.6.0.js" integrity="sha512-GEEIHvphDt1NmaxzX8X1ZkBiGKXCv+Ofzwi8SMEH5wQVWqdGIvBO/fnxxKZ90RU1bVp6srS68nHIpZo6iVcG9g==" crossorigin="anonymous"></script>
|
<script async type="text/javascript" data-cfasync="false" src="js/kjua-0.6.0.js" integrity="sha512-mS5pSr1OST+Q29k4J4epdY+UFR9EmQ/mm96tV4QN22NHQPaWAXuDOAEAA9RAPpmY5jY2SDz8lMHN9CPysV/Dsg==" crossorigin="anonymous"></script>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
if ($ZEROBINCOMPATIBILITY):
|
if ($ZEROBINCOMPATIBILITY):
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/base64-1.7.js" integrity="sha512-JdwsSP3GyHR+jaCkns9CL9NTt4JUJqm/BsODGmYhBcj5EAPKcHYh+OiMfyHbcDLECe17TL0hjXADFkusAqiYgA==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/base64-1.7.js" integrity="sha512-V6V3jxySWm/c62rSuY64hIU1/xYwaeQ+RJQyOzUMiZEMMlZXlnbif6/v/4v3Nck/cch7LylQU8lMplZUnIhSoA==" crossorigin="anonymous"></script>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/zlib-1.2.11.js" integrity="sha512-Yey/0yoaVmSbqMEyyff3DIu8kCPwpHvHf7tY1AuZ1lrX9NPCMg87PwzngMi+VNbe4ilCApmePeuKT869RTcyCQ==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/zlib-1.2.11.js" integrity="sha512-ltQiYRTMNyL8c4rObU3wsq1IY9qXWlw3ev19xbLZywKhzLy9Ys3QWkUfbokF8V1yZPGdfFqCPLGpbj+D4NhtDA==" crossorigin="anonymous"></script>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/base-x-3.0.7.js" integrity="sha512-/Bi1AJIP0TtxEB+Jh6Hk809H1G7vn4iJV80qagslf0+Hm0UjUi1s3qNrn1kZULjzUYuaf6ck0ndLGJ7MxWLmgQ==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/base-x-3.0.7.js" integrity="sha512-1PEa62gwxcuweDJX3y/hE5hqV1WwUcKWdXnCPVBPu2J0QoONNH90gJSfKqdQCnsJhjMGNUWH6/UFQs1D3ufczQ==" crossorigin="anonymous"></script>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/rawinflate-0.3.js" integrity="sha512-g8uelGgJW9A/Z1tB6Izxab++oj5kdD7B4qC7DHwZkB6DGMXKyzx7v5mvap2HXueI2IIn08YlRYM56jwWdm2ucQ==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/rawinflate-0.3.js" integrity="sha512-oC3qyjPVFoECDz+NY8EWEweqMF9Aobh+bxwfQsWTO+75CzsvHkZUZHiFI1iWPnCymurCZ8N1IRiA1lQstakAjw==" crossorigin="anonymous"></script>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/bootstrap-3.3.7.js" integrity="sha512-iztkobsvnjKfAtTNdHkGVjAYTrrtlC7mGp/54c40wowO7LhURYl3gVzzcEqGl/qKXQltJ2HwMrdLcNUdo+N/RQ==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/bootstrap-3.3.7.js" integrity="sha512-4nvga8iY3PiT8GzEnK/LtrpuOmkQaomlAPaZPldgCzY2OSeEgRI3oaeDln2+BdV6B2nHj4B0oMOlmxa2VbHTUA==" crossorigin="anonymous"></script>
|
||||||
<?php
|
<?php
|
||||||
if ($SYNTAXHIGHLIGHTING):
|
if ($SYNTAXHIGHLIGHTING):
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/prettify.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-puO0Ogy++IoA2Pb9IjSxV1n4+kQkKXYAEUtVzfZpQepyDPyXk8hokiYDS7ybMogYlyyEIwMLpZqVhCkARQWLMg==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/prettify.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-8Yo8AyWGdIAIogswah43R44ykWSTkNhgYaR4fsn49WSIsZ6GQF8HgO5ZbomYG7N459Rd2Ycl+JZTmJWovIy5TA==" crossorigin="anonymous"></script>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
if ($MARKDOWN):
|
if ($MARKDOWN):
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/showdown-1.9.1.js" integrity="sha512-nRri7kqh3iRLdHbhtjfe8w9eAQPmt+ubH5U88UZyKbz6O9Q0q4haaXF0krOUclKmRJou/kKZYulgBHvHXPqOvg==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/showdown-1.9.1.js" integrity="sha512-XaY4Yp8taiarnpsT49pd5AWWq9BfheHGV7MTt7ER2N5/rcq3v2DK7lbhdAhMic9eCoOD1cnBIgMCcV85ew4OSA==" crossorigin="anonymous"></script>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/purify-2.0.8.js" integrity="sha512-QwcEKGuEmKtMguCO9pqNtUtZqq9b/tJ8gNr5qhY8hykq3zKTlDOvpZAmf6Rs8yH35Bz1ZdctUjj2qEWxT5aXCg==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/purify-2.0.8.js" integrity="sha512-x2Kev3A7fqc/QKCzRHoJ7qCiglgxXtY8WDUMPOUBI6jVueqRkRMGjP1IqD9iUWVuND81ckCCS27Br5M11tw0IA==" crossorigin="anonymous"></script>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/legacy.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-LYos+qXHIRqFf5ZPNphvtTB0cgzHUizu2wwcOwcwz/VIpRv9lpcBgPYz4uq6jx0INwCAj6Fbnl5HoKiLufS2jg==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/legacy.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-3L/E22cdC3wDFXKM1i32bw4HdrfX14du2xswUKanOY6CLrD+e0hykmLvES+zfBKF1GFQFKr3OmdCVH2y+zHlsA==" crossorigin="anonymous"></script>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-enOoc3FEmX00nbC+28Qrhjc2shbso/DWmeHVbLDy+a0jvXXweYXCr/B1PRqnXJzTBdPqVBYLVM1u6peVlTwNxg==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-orzZ0Xa2whu2x2rgs9pUPD3cbbw2kMK9GeCIQPC50/H66tgobl3LjsGNREI6s0porBoJ+Wp6icp+Z1FqyQ/bxA==" crossorigin="anonymous"></script>
|
||||||
<link rel="apple-touch-icon" href="img/apple-touch-icon.png?<?php echo rawurlencode($VERSION); ?>" sizes="180x180" />
|
<link rel="apple-touch-icon" href="img/apple-touch-icon.png?<?php echo rawurlencode($VERSION); ?>" sizes="180x180" />
|
||||||
<link rel="icon" type="image/png" href="img/favicon-32x32.png?<?php echo rawurlencode($VERSION); ?>" sizes="32x32" />
|
<link rel="icon" type="image/png" href="img/favicon-32x32.png?<?php echo rawurlencode($VERSION); ?>" sizes="32x32" />
|
||||||
<link rel="icon" type="image/png" href="img/favicon-16x16.png?<?php echo rawurlencode($VERSION); ?>" sizes="16x16" />
|
<link rel="icon" type="image/png" href="img/favicon-16x16.png?<?php echo rawurlencode($VERSION); ?>" sizes="16x16" />
|
||||||
|
|||||||
22
tpl/page.php
22
tpl/page.php
@@ -20,37 +20,37 @@ if ($SYNTAXHIGHLIGHTING):
|
|||||||
endif;
|
endif;
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/jquery-3.4.1.js" integrity="sha512-bnIvzh6FU75ZKxp0GXLH9bewza/OIw6dLVh9ICg0gogclmYGguQJWl8U30WpbsGTqbIiAwxTsbe76DErLq5EDQ==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/jquery-3.4.1.js" integrity="sha512-9anGruNHwVXk3XlsUXFrdEe8Iq5EdB/Otrz+4C+VWtQGPThhPyQRCKPh8+H1QPyu2NmEi5oPuCPACVXPmhnvrQ==" crossorigin="anonymous"></script>
|
||||||
<?php
|
<?php
|
||||||
if ($QRCODE):
|
if ($QRCODE):
|
||||||
?>
|
?>
|
||||||
<script async type="text/javascript" data-cfasync="false" src="js/kjua-0.6.0.js" integrity="sha512-GEEIHvphDt1NmaxzX8X1ZkBiGKXCv+Ofzwi8SMEH5wQVWqdGIvBO/fnxxKZ90RU1bVp6srS68nHIpZo6iVcG9g==" crossorigin="anonymous"></script>
|
<script async type="text/javascript" data-cfasync="false" src="js/kjua-0.6.0.js" integrity="sha512-mS5pSr1OST+Q29k4J4epdY+UFR9EmQ/mm96tV4QN22NHQPaWAXuDOAEAA9RAPpmY5jY2SDz8lMHN9CPysV/Dsg==" crossorigin="anonymous"></script>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
if ($ZEROBINCOMPATIBILITY):
|
if ($ZEROBINCOMPATIBILITY):
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/base64-1.7.js" integrity="sha512-JdwsSP3GyHR+jaCkns9CL9NTt4JUJqm/BsODGmYhBcj5EAPKcHYh+OiMfyHbcDLECe17TL0hjXADFkusAqiYgA==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/base64-1.7.js" integrity="sha512-V6V3jxySWm/c62rSuY64hIU1/xYwaeQ+RJQyOzUMiZEMMlZXlnbif6/v/4v3Nck/cch7LylQU8lMplZUnIhSoA==" crossorigin="anonymous"></script>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/zlib-1.2.11.js" integrity="sha512-Yey/0yoaVmSbqMEyyff3DIu8kCPwpHvHf7tY1AuZ1lrX9NPCMg87PwzngMi+VNbe4ilCApmePeuKT869RTcyCQ==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/zlib-1.2.11.js" integrity="sha512-ltQiYRTMNyL8c4rObU3wsq1IY9qXWlw3ev19xbLZywKhzLy9Ys3QWkUfbokF8V1yZPGdfFqCPLGpbj+D4NhtDA==" crossorigin="anonymous"></script>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/base-x-3.0.7.js" integrity="sha512-/Bi1AJIP0TtxEB+Jh6Hk809H1G7vn4iJV80qagslf0+Hm0UjUi1s3qNrn1kZULjzUYuaf6ck0ndLGJ7MxWLmgQ==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/base-x-3.0.7.js" integrity="sha512-1PEa62gwxcuweDJX3y/hE5hqV1WwUcKWdXnCPVBPu2J0QoONNH90gJSfKqdQCnsJhjMGNUWH6/UFQs1D3ufczQ==" crossorigin="anonymous"></script>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/rawinflate-0.3.js" integrity="sha512-g8uelGgJW9A/Z1tB6Izxab++oj5kdD7B4qC7DHwZkB6DGMXKyzx7v5mvap2HXueI2IIn08YlRYM56jwWdm2ucQ==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/rawinflate-0.3.js" integrity="sha512-oC3qyjPVFoECDz+NY8EWEweqMF9Aobh+bxwfQsWTO+75CzsvHkZUZHiFI1iWPnCymurCZ8N1IRiA1lQstakAjw==" crossorigin="anonymous"></script>
|
||||||
<?php
|
<?php
|
||||||
if ($SYNTAXHIGHLIGHTING):
|
if ($SYNTAXHIGHLIGHTING):
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/prettify.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-puO0Ogy++IoA2Pb9IjSxV1n4+kQkKXYAEUtVzfZpQepyDPyXk8hokiYDS7ybMogYlyyEIwMLpZqVhCkARQWLMg==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/prettify.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-8Yo8AyWGdIAIogswah43R44ykWSTkNhgYaR4fsn49WSIsZ6GQF8HgO5ZbomYG7N459Rd2Ycl+JZTmJWovIy5TA==" crossorigin="anonymous"></script>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
if ($MARKDOWN):
|
if ($MARKDOWN):
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/showdown-1.9.1.js" integrity="sha512-nRri7kqh3iRLdHbhtjfe8w9eAQPmt+ubH5U88UZyKbz6O9Q0q4haaXF0krOUclKmRJou/kKZYulgBHvHXPqOvg==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/showdown-1.9.1.js" integrity="sha512-XaY4Yp8taiarnpsT49pd5AWWq9BfheHGV7MTt7ER2N5/rcq3v2DK7lbhdAhMic9eCoOD1cnBIgMCcV85ew4OSA==" crossorigin="anonymous"></script>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/purify-2.0.8.js" integrity="sha512-QwcEKGuEmKtMguCO9pqNtUtZqq9b/tJ8gNr5qhY8hykq3zKTlDOvpZAmf6Rs8yH35Bz1ZdctUjj2qEWxT5aXCg==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/purify-2.0.8.js" integrity="sha512-x2Kev3A7fqc/QKCzRHoJ7qCiglgxXtY8WDUMPOUBI6jVueqRkRMGjP1IqD9iUWVuND81ckCCS27Br5M11tw0IA==" crossorigin="anonymous"></script>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/legacy.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-LYos+qXHIRqFf5ZPNphvtTB0cgzHUizu2wwcOwcwz/VIpRv9lpcBgPYz4uq6jx0INwCAj6Fbnl5HoKiLufS2jg==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/legacy.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-3L/E22cdC3wDFXKM1i32bw4HdrfX14du2xswUKanOY6CLrD+e0hykmLvES+zfBKF1GFQFKr3OmdCVH2y+zHlsA==" crossorigin="anonymous"></script>
|
||||||
<script type="text/javascript" data-cfasync="false" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-enOoc3FEmX00nbC+28Qrhjc2shbso/DWmeHVbLDy+a0jvXXweYXCr/B1PRqnXJzTBdPqVBYLVM1u6peVlTwNxg==" crossorigin="anonymous"></script>
|
<script type="text/javascript" data-cfasync="false" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-orzZ0Xa2whu2x2rgs9pUPD3cbbw2kMK9GeCIQPC50/H66tgobl3LjsGNREI6s0porBoJ+Wp6icp+Z1FqyQ/bxA==" crossorigin="anonymous"></script>
|
||||||
<link rel="apple-touch-icon" href="img/apple-touch-icon.png?<?php echo rawurlencode($VERSION); ?>" sizes="180x180" />
|
<link rel="apple-touch-icon" href="img/apple-touch-icon.png?<?php echo rawurlencode($VERSION); ?>" sizes="180x180" />
|
||||||
<link rel="icon" type="image/png" href="img/favicon-32x32.png?<?php echo rawurlencode($VERSION); ?>" sizes="32x32" />
|
<link rel="icon" type="image/png" href="img/favicon-32x32.png?<?php echo rawurlencode($VERSION); ?>" sizes="32x32" />
|
||||||
<link rel="icon" type="image/png" href="img/favicon-16x16.png?<?php echo rawurlencode($VERSION); ?>" sizes="16x16" />
|
<link rel="icon" type="image/png" href="img/favicon-16x16.png?<?php echo rawurlencode($VERSION); ?>" sizes="16x16" />
|
||||||
|
|||||||
@@ -56,18 +56,4 @@ class FilterTest extends PHPUnit_Framework_TestCase
|
|||||||
$this->assertEquals('1.00 YiB', Filter::formatHumanReadableSize(1024 * $exponent));
|
$this->assertEquals('1.00 YiB', Filter::formatHumanReadableSize(1024 * $exponent));
|
||||||
$this->assertEquals('1.21 YiB', Filter::formatHumanReadableSize(1234 * $exponent));
|
$this->assertEquals('1.21 YiB', Filter::formatHumanReadableSize(1234 * $exponent));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testSlowEquals()
|
|
||||||
{
|
|
||||||
$this->assertTrue(Filter::slowEquals('foo', 'foo'), 'same string');
|
|
||||||
$this->assertFalse(Filter::slowEquals('foo', true), 'string and boolean');
|
|
||||||
$this->assertFalse(Filter::slowEquals('foo', 0), 'string and integer');
|
|
||||||
$this->assertFalse(Filter::slowEquals('123foo', 123), 'string and integer');
|
|
||||||
$this->assertFalse(Filter::slowEquals('123foo', '123'), 'different strings');
|
|
||||||
$this->assertFalse(Filter::slowEquals('6', ' 6'), 'strings with space');
|
|
||||||
$this->assertFalse(Filter::slowEquals('4.2', '4.20'), 'floats as strings');
|
|
||||||
$this->assertFalse(Filter::slowEquals('1e3', '1000'), 'integers as strings');
|
|
||||||
$this->assertFalse(Filter::slowEquals('9223372036854775807', '9223372036854775808'), 'large integers as strings');
|
|
||||||
$this->assertFalse(Filter::slowEquals('61529519452809720693702583126814', '61529519452809720000000000000000'), 'larger integers as strings');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,25 +46,28 @@ class SvgGenerator extends BaseGenerator implements GeneratorInterface
|
|||||||
// prepare image
|
// prepare image
|
||||||
$w = $this->getPixelRatio() * 5;
|
$w = $this->getPixelRatio() * 5;
|
||||||
$h = $this->getPixelRatio() * 5;
|
$h = $this->getPixelRatio() * 5;
|
||||||
$svg = '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'.$w.'" height="'.$h.'">';
|
$svg = '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'.$w.'" height="'.$h.'" viewBox="0 0 5 5">';
|
||||||
|
|
||||||
$backgroundColor = '#FFFFFF';
|
$backgroundColor = '#FFF';
|
||||||
$rgbBackgroundColor = $this->getBackgroundColor();
|
$rgbBackgroundColor = $this->getBackgroundColor();
|
||||||
if (!is_null($rgbBackgroundColor)) {
|
if (!is_null($rgbBackgroundColor)) {
|
||||||
$backgroundColor = $this->_toUnderstandableColor($rgbBackgroundColor);
|
$backgroundColor = $this->_toUnderstandableColor($rgbBackgroundColor);
|
||||||
}
|
}
|
||||||
$svg .= '<rect width="'.$w.'" height="'.$h.'" style="fill:'.$backgroundColor.';stroke-width:1;stroke:'.$backgroundColor.'"/>';
|
|
||||||
|
|
||||||
$rgbColor = $this->_toUnderstandableColor($this->getColor());
|
$svg .= '<rect width="5" height="5" fill="'.$backgroundColor.'" stroke-width="0"/>';
|
||||||
|
|
||||||
|
$rects = [];
|
||||||
// draw content
|
// draw content
|
||||||
foreach ($this->getArrayOfSquare() as $lineKey => $lineValue) {
|
foreach ($this->getArrayOfSquare() as $lineKey => $lineValue) {
|
||||||
foreach ($lineValue as $colKey => $colValue) {
|
foreach ($lineValue as $colKey => $colValue) {
|
||||||
if (true === $colValue) {
|
if (true === $colValue) {
|
||||||
$svg .= '<rect x="'.$colKey * $this->getPixelRatio().'" y="'.$lineKey * $this->getPixelRatio().'" width="'.($this->getPixelRatio()).'" height="'.$this->getPixelRatio().'" style="fill:'.$rgbColor.';stroke-width:0;"/>';
|
$rects[] = 'M'.$colKey.','.$lineKey.'h1v1h-1v-1';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$rgbColor = $this->_toUnderstandableColor($this->getColor());
|
||||||
|
$svg .= '<path fill="'.$rgbColor.'" stroke-width="0" d="' . implode('', $rects) . '"/>';
|
||||||
$svg .= '</svg>';
|
$svg .= '</svg>';
|
||||||
|
|
||||||
$this->generatedImage = $svg;
|
$this->generatedImage = $svg;
|
||||||
@@ -80,7 +83,7 @@ class SvgGenerator extends BaseGenerator implements GeneratorInterface
|
|||||||
protected function _toUnderstandableColor($color)
|
protected function _toUnderstandableColor($color)
|
||||||
{
|
{
|
||||||
if (is_array($color)) {
|
if (is_array($color)) {
|
||||||
return 'rgb('.implode(', ', $color).')';
|
return sprintf('#%X%X%X', $color[0], $color[1], $color[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $color;
|
return $color;
|
||||||
|
|||||||
@@ -46,10 +46,10 @@ class Identicon
|
|||||||
/**
|
/**
|
||||||
* Display an Identicon image.
|
* Display an Identicon image.
|
||||||
*
|
*
|
||||||
* @param string $string
|
* @param string $string
|
||||||
* @param int $size
|
* @param int $size
|
||||||
* @param string $color
|
* @param string|array $color
|
||||||
* @param string $backgroundColor
|
* @param string $backgroundColor
|
||||||
*/
|
*/
|
||||||
public function displayImage($string, $size = 64, $color = null, $backgroundColor = null)
|
public function displayImage($string, $size = 64, $color = null, $backgroundColor = null)
|
||||||
{
|
{
|
||||||
@@ -60,10 +60,10 @@ class Identicon
|
|||||||
/**
|
/**
|
||||||
* Get an Identicon PNG image data.
|
* Get an Identicon PNG image data.
|
||||||
*
|
*
|
||||||
* @param string $string
|
* @param string $string
|
||||||
* @param int $size
|
* @param int $size
|
||||||
* @param string $color
|
* @param string|array $color
|
||||||
* @param string $backgroundColor
|
* @param string $backgroundColor
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
@@ -75,10 +75,10 @@ class Identicon
|
|||||||
/**
|
/**
|
||||||
* Get an Identicon PNG image resource.
|
* Get an Identicon PNG image resource.
|
||||||
*
|
*
|
||||||
* @param string $string
|
* @param string $string
|
||||||
* @param int $size
|
* @param int $size
|
||||||
* @param string $color
|
* @param string|array $color
|
||||||
* @param string $backgroundColor
|
* @param string $backgroundColor
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
@@ -90,10 +90,10 @@ class Identicon
|
|||||||
/**
|
/**
|
||||||
* Get an Identicon PNG image data as base 64 encoded.
|
* Get an Identicon PNG image data as base 64 encoded.
|
||||||
*
|
*
|
||||||
* @param string $string
|
* @param string $string
|
||||||
* @param int $size
|
* @param int $size
|
||||||
* @param string $color
|
* @param string|array $color
|
||||||
* @param string $backgroundColor
|
* @param string $backgroundColor
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
@@ -101,13 +101,13 @@ class Identicon
|
|||||||
{
|
{
|
||||||
return sprintf('data:%s;base64,%s', $this->generator->getMimeType(), base64_encode($this->getImageData($string, $size, $color, $backgroundColor)));
|
return sprintf('data:%s;base64,%s', $this->generator->getMimeType(), base64_encode($this->getImageData($string, $size, $color, $backgroundColor)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the color of the Identicon
|
* Get the color of the Identicon
|
||||||
*
|
*
|
||||||
* Returns an array with RGB values of the Identicon's color. Colors may be NULL if no image has been generated
|
* Returns an array with RGB values of the Identicon's color. Colors may be NULL if no image has been generated
|
||||||
* so far (e.g., when calling the method on a new Identicon()).
|
* so far (e.g., when calling the method on a new Identicon()).
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getColor()
|
public function getColor()
|
||||||
|
|||||||
Reference in New Issue
Block a user