[wp-trac] [WordPress Trac] #10690: Wordpress does not support non-ascii characters in URLs
WordPress Trac
wp-trac at lists.automattic.com
Tue Mar 29 07:20:50 UTC 2011
#10690: Wordpress does not support non-ascii characters in URLs
--------------------------+------------------------------
Reporter: paddya | Owner: markjaquith
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Canonical | Version: 2.8.4
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+------------------------------
Comment (by codestyling):
Replying to [comment:24 hakre]:
> Replying to [comment:22 codestyling]:
> > Replying to [comment:20 hakre]:
> > > Replying to [comment:18 codestyling]:
> > >
> > > Can you specify `Ajax.Request`? Is that of some javascript library?
> >
> > Yes I can. This is belongs to ''Prototype.js'' library shipped with
WordPress as one of the standard libraries. Documentation can be found
here: http://api.prototypejs.org/ajax/Ajax/Request/
>
> Thanks for providing the information. Can you provide a link to the
prototype documentation of that `Ajax.Request` that is specifying the
encoding of the URL parameter? The link you provided does not say in which
encoding/format the URL has to be provided. This might just be a bug in
prototype, not Wordpress.
Here ist the default option description of Prototype.js Ajax classes:
http://api.prototypejs.org/ajax/
Please look at the ''evalJS'' property set as default to ''true'' which
results into automatic population of ''responseJSON'' instead of
''responseText'' if the returned content type is ''application/json''.
As also noticed, this is strongly related to ''same origin policy'' and
this will not work at all browsers the same way unsing IDN based URL's
like the admin_url() do at WordPress for PunyCode URL's.
Even if this could be a bug at Prototype.js it affects function of
WordPress plugins/themes using the onboard shipped Prototype.js
functionality to solve the goals.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10690#comment:25>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list