Skip to content

Commit

Permalink
Merge branch 'release/3.1.35' into v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Welch committed Mar 16, 2020
2 parents 3d79b75 + f1cfd96 commit 40f7afc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Retour Changelog

## 3.1.35 - 2020.03.16
### Fixed
* Fixes an issue where `UrlHelper::sanitizeUrl()` would return an empty string

## 3.1.34 - 2020.03.12
### Fixed
* Handle sanitizing URLs that have special characters such as `ü` in them
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -2,7 +2,7 @@
"name": "nystudio107/craft-retour",
"description": "Retour allows you to intelligently redirect legacy URLs, so that you don't lose SEO value when rebuilding & restructuring a website",
"type": "craft-plugin",
"version": "3.1.34",
"version": "3.1.35",
"keywords": [
"craftcms",
"craft-plugin",
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/UrlHelper.php
Expand Up @@ -37,7 +37,7 @@ public static function sanitizeUrl(string $url): string
$url = strip_tags($url);
// Remove any Twig tags that somehow are present in the incoming URL
/** @noinspection CallableParameterUseCaseInTypeContextInspection */
$url = preg_replace('{.*}', '', $url);
$url = preg_replace('/{.*}/', '', $url);

return $url;
}
Expand Down

0 comments on commit 40f7afc

Please sign in to comment.