Version 5.0.6
This commit is contained in:
1 parent
a3a4a9ccbd
commit
b89858b2ff
1214 files changed
+92828
-14859
No files matched your search
@@ -647,7 +647,7 @@ class Friendly extends Internal
|
||||
$furlDefinition = static::furlDefinition();
|
||||
if ( !isset( $furlDefinition[ $seoTemplate ] ) )
|
||||
{
|
||||
throw new Exception( 'INVALID_SEO_TEMPLATE ' . $seoTemplate );
|
||||
throw new Exception( 'INVALID_SEO_TEMPLATE' );
|
||||
}
|
||||
$component = $furlDefinition[ $seoTemplate ]['friendly'];
|
||||
|
||||
@@ -716,6 +716,9 @@ class Friendly extends Internal
|
||||
|
||||
/* Disallowed characters which browsers may try to automatically percent-encode */
|
||||
$value = str_replace( array( '!', '*', '\'', '(', ')', ';', ':', '@', '&', '=', '+', '$', ',', '/', '?', '#', '[', ']', '%', '\\', '"', '<', '>', '^', '{', '}', '|', '.', '`' ), '', $value );
|
||||
|
||||
/* Curly quotes */
|
||||
$value = str_replace( array( "\xe2\x80\x98", "\xe2\x80\x99", "\xe2\x80\x9c", "\xe2\x80\x9d", "\xe2\x80\x93", "\xe2\x80\x94", "\xe2\x80\xa6" ), '', $value );
|
||||
|
||||
/* Trim */
|
||||
$value = preg_replace( '/\-+/', '-', $value );
|
||||
|
||||
Reference in new issue
Block a user