Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eZCharTransform::commandUrlCleanupIRI replaces double quotes #1274

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/ezi18n/classes/ezchartransform.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ static function commandUrlCleanupIRI( $text, $charsetName )
{
// With IRI support we keep all characters except some reserved ones,
// they are space, tab, ampersand, semi-colon, forward slash, colon, equal sign, question mark,
// square brackets, parenthesis, plus.
// square brackets, parenthesis, plus, double quotes.
//
// Note: Spaces and tabs are turned into a dash to make it easier for people to
// paste urls from the system and have the whole url recognized
Expand All @@ -420,7 +420,7 @@ static function commandUrlCleanupIRI( $text, $charsetName )
$prepost = " ." . $sepQ;
if ( $sep != "-" )
$prepost .= "-";
$text = preg_replace( array( "#[ \t\\\\%\#&;/:=?\[\]()+]+#",
$text = preg_replace( array( "#[ \t\\\\%\#&;/:=?\[\]()+\"]+#",
"#\.\.+#", # Remove double dots
"#[{$sepQ}]+#", # Turn multiple separators into one
"#^[{$prepost}]+|[!{$prepost}]+$#" ), # Strip "!", dots and separator from beginning/end
Expand Down