Added support for utf-8 characters in urls for English language pack
This commit is contained in:
parent
960ff2287c
commit
ac7ce44180
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 /
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue