Skip to content

Commit

Permalink
Fix for invalid HTML chars and very long site titles #701
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Jul 15, 2016
1 parent cdb575c commit 5871d1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
1. [](#improved)
* Made `paramsRegex()` static to allow it to be called statically
1. [](#bugfix)
* Fixed backup when using very long site titles with invalid characters [grav-plugin-admin#701](https://github.com/getgrav/grav-plugin-admin/issues/701)
* Fixed a typo in the `webserver-configs/nginx.conf` example

# v1.1.0
Expand Down
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Backup/ZipBackup.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static function backup($destination = null, callable $messager = null)
}
}

$name = Grav::instance()['config']->get('site.title', basename(GRAV_ROOT));
$name = substr(strip_tags(Grav::instance()['config']->get('site.title', basename(GRAV_ROOT))), 0, 20);

$inflector = new Inflector();

Expand Down

0 comments on commit 5871d1a

Please sign in to comment.