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

Convert IDNA_Convert library to be Composer managed, update to 0.9 #7552

Closed
wants to merge 20 commits into from
Closed

Convert IDNA_Convert library to be Composer managed, update to 0.9 #7552

wants to merge 20 commits into from

Conversation

mbabker
Copy link
Contributor

@mbabker mbabker commented Jul 26, 2015

This PR moves the IDNA_Convert library from a Joomla library extension to being managed via Composer (using https://github.com/phpWhois/idna-convert as the source). It also runs an update to version 0.9 of the library and restores the accidentally deleted test class for our Punycode conversions (only affects the 3.5 branch).

Testing

With the patch applied, things should still work as intended. If you've got strings going through the Punycode library (I'm sure JM can tell us all where this is checked), those should still be processed correctly.

@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-3.5-dev labels Jul 26, 2015
@infograf768
Copy link
Member

e-mail fields and urls fields.
Basically for example:
Entering in the field: http://www.джумла-тест.рф/master
will be saved in the db as:
http://www.xn----7sblgc4ag8bhcd.xn--p1ai/master
and will still display in the field as:
http://www.джумла-тест.рф/master

When it is used in a page, it is the punycoded version stored in the db which is used as url link or mailto.
So we will see:
screen shot 2015-07-27 at 08 39 42

but the source will be:

        <span class="contact-webpage">
            <a href="http://www.xn----7sblgc4ag8bhcd.xn--p1ai/master" target="_blank" itemprop="url">
            http://www.джумла-тест.рф/master</a>
        </span>

@infograf768
Copy link
Member

Found a small issue which is not related to this patch when displaying contact profile in front-end.

Website:</label></dt><dd><a href="http://www.xn----7sblgc4ag8bhcd.xn--p1ai/index.php">http://www.xn----7sblgc4ag8bhcd.xn--p1ai/index.php</a></dd>       </dl>

Will try to find where it is done.

@infograf768
Copy link
Member

See #7585

Small code style improvement, removing unnecessary else after a return in an if.
/components/com_users/controllers/user.php
@wilsonge wilsonge added this to the Joomla! 3.5.0 milestone Aug 24, 2015
This is an adaption of #5469 for the category view.
Michael Babker and others added 17 commits October 24, 2015 12:09
#### Steps to reproduce the issue
Go to the language filter plugin
In the backend, go to:
Extensions->Plugins->System - Language Filter 

#### Actual result
The selector for the "Cookie Lifetime" (Year/Session) is a radio btn type with: 
class="btn-group btn-group-yesno" then 'success' (green) for "Year" and 'danger' (red) for "Session"

#### Expected result
As it is not a kind of yes/no selector and to be consistent, I think we should use a type="list" instead of the type="radio"
Use PHP_INT_MAX for maxLevel all in category view.
Add support for the second argument of JLoader::import() to jimport()
Changing the selector type to avoid inconsistency
Prevent notice with unset timezone while formatting a date
[codestyle] Removed redundant elses
# Conflicts:
#	libraries/legacy/view/category.php
@mbabker
Copy link
Contributor Author

mbabker commented Oct 27, 2015

Resubmitting against staging.

@mbabker mbabker closed this Oct 27, 2015
@mbabker mbabker deleted the Composer-IDNA branch October 30, 2015 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants