~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/coremedia/util.js

  • Committer: Matt Giuca
  • Date: 2010-02-23 06:02:31 UTC
  • Revision ID: matt.giuca@gmail.com-20100223060231-f0qfwwlgqgrh9km3
util.js: ajax_call - call urlencode_path, rather than encodeURI. You should never call encodeURI. This fixes certain characters in filenames such as # breaking all actions when in a file or directory with such a character. This fixes Launchpad bug #526240.

Show diffs side-by-side

added added

removed removed

Lines of Context:
665
665
    else
666
666
    {
667
667
        /* POST & PUT & PATCH sends the args in the request body */
668
 
        url = encodeURI(path);
 
668
        url = urlencode_path(path);
669
669
        xhr.open(method, url, asyncronous);
670
670
        var message;
671
671
        if (content_type == "multipart/form-data")