diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 09b86e7b7..84a50079e 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -15,6 +15,7 @@ - fixed #11542: Date macro can pass in epoch values that do not pass regex checks - fixed #11537: Wiki, sorting by most popular - added: Rewrite of the Shop and Cart. + - fixed: Urls in English WebGUI sites can now support valid utf-8 characters that do not otherwise interfere with the url. 7.9.3 - added #11477: No synopsis in asset now means no synopsis in search index diff --git a/lib/WebGUI/i18n/English.pm b/lib/WebGUI/i18n/English.pm index c17d4277c..b8abc2f78 100644 --- a/lib/WebGUI/i18n/English.pm +++ b/lib/WebGUI/i18n/English.pm @@ -16,7 +16,7 @@ sub makeUrlCompliant { $value =~ s/^\s+//; #removes leading whitespace $value =~ s/ /-/g; #replaces whitespace with hyphens $value =~ s/\.$//; #removes trailing period - $value =~ s/[^A-Za-z0-9\-\.\_\/]//g; #removes all funky characters + $value =~ s/[^\w\-\.\_\/]//g; #removes characters that would interfere with the url $value =~ s/^\///; #removes a leading / $value =~ s/\/$//; #removes a trailing / $value =~ s/\/\//\//g; #removes double /