Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/getgrav/grav into featur…
Browse files Browse the repository at this point in the history
…e/session
  • Loading branch information
mahagr committed Apr 13, 2018
2 parents 2b17bf7 + 4db2b75 commit 02555ba
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 192 deletions.
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# v1.4.3
## mm/dd//2018
## 04/12/2018

1. [](#new)
* moved sortArrayByKey logic into `Utils::` class
* moved Twig `sortArrayByKey` logic into `Utils::` class
1. [](#improved)
* Rolled back Parsedown library to stable `1.6.4` until a better solution for `1.8.0` compatibility can fe found
* Updated vendor libraries to latest versions
1. [](#bugfix)
* Fix for bad reference to `ZipArchive` in `GPM::Installer`

Expand Down Expand Up @@ -70,7 +73,6 @@
* Optimizations & refactoring to the test suite [#1779](https://github.com/getgrav/grav/pull/1779)
* Slight modification of Whoops error colors
* Added new configuration option `system.session.initialize` to delay session initialization if needed by a plugin
* Vendor library updated to latest
* Updated vendor libraries to latest versions
* Removed constructor from `ObjectInterface`
* Make it possible to include debug bar also into non-HTML responses
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
"homepage": "http://getgrav.org",
"license": "MIT",
"require": {
"roave/security-advisories": "dev-master",
"php": ">=5.5.9",
"twig/twig": "~1.24",
"erusev/parsedown": "~1.7",
"erusev/parsedown": "1.6.4",
"erusev/parsedown-extra": "~0.7",
"symfony/yaml": "~2.8",
"symfony/console": "~2.8",
Expand Down
174 changes: 6 additions & 168 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion system/defines.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Some standard defines
define('GRAV', true);
define('GRAV_VERSION', '1.4.2');
define('GRAV_VERSION', '1.4.3');
define('GRAV_TESTING', false);
define('DS', '/');

Expand Down
13 changes: 0 additions & 13 deletions system/src/Grav/Common/Markdown/ParsedownGravTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,19 +243,6 @@ protected function inlineLink($excerpt)
return $excerpt;
}

/**
* Return Text as-is to get around Parsedown security fixes
* which break these fields
*
* @param $text
* @param $nestable
* @return mixed
*/
public function html($text, $nestable)
{
return $text;
}

// For extending this class via plugins
public function __call($method, $args)
{
Expand Down
1 change: 0 additions & 1 deletion system/src/Grav/Common/Page/Medium/AudioMedium.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ protected function sourceParsedownElement(array $attributes, $reset = true)

return [
'name' => 'audio',
'handler' => 'html',
'text' => '<source src="' . $location . '">Your browser does not support the audio tag.',
'attributes' => $attributes
];
Expand Down
3 changes: 1 addition & 2 deletions system/src/Grav/Common/Page/Medium/VideoMedium.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ protected function sourceParsedownElement(array $attributes, $reset = true)

return [
'name' => 'video',
'handler' => 'html',
'text' => '<source src="' . $location . '">Your2 browser does not support the video tag.',
'text' => '<source src="' . $location . '">Your browser does not support the video tag.',
'attributes' => $attributes
];
}
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/Grav/Common/Markdown/ParsedownTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public function testExternalLinks()
$this->parsedown->text('[cnn.com](http://www.cnn.com)'));
$this->assertSame('<p><a href="https://www.google.com">google.com</a></p>',
$this->parsedown->text('[google.com](https://www.google.com)'));
$this->assertSame('<p><a href="https://github.com/getgrav/grav/issues/new?title=%5Badd-resource%5D%20New%20Plugin%2FTheme&amp;body=Hello%20%2A%2AThere%2A%2A">complex url</a></p>',
$this->assertSame('<p><a href="https://github.com/getgrav/grav/issues/new?title=%5Badd-resource%5D%20New%20Plugin%2FTheme&body=Hello%20%2A%2AThere%2A%2A">complex url</a></p>',
$this->parsedown->text('[complex url](https://github.com/getgrav/grav/issues/new?title=[add-resource]%20New%20Plugin/Theme&body=Hello%20**There**)'));
}

Expand Down Expand Up @@ -689,7 +689,7 @@ public function testAttributeLinks()
$this->parsedown->text('[Relative Target](../item2-3?target=_blank)'));
$this->assertSame('<p><a href="/item2/item2-3" rel="nofollow">Relative Rel</a></p>',
$this->parsedown->text('[Relative Rel](../item2-3?rel=nofollow)'));
$this->assertSame('<p><a href="/item2/item2-3?foo=bar&amp;baz=qux" rel="nofollow" class="button">Relative Mixed</a></p>',
$this->assertSame('<p><a href="/item2/item2-3?foo=bar&baz=qux" rel="nofollow" class="button">Relative Mixed</a></p>',
$this->parsedown->text('[Relative Mixed](../item2-3?foo=bar&baz=qux&rel=nofollow&class=button)'));
}

Expand Down

0 comments on commit 02555ba

Please sign in to comment.