3-Round-Stones / callimachus

Callimachus is a highly scalable platform for creating and running data-driven websites
Other
95 stars 24 forks source link

XProc pipline fails to decode + using p:www-form-urldecode #237

Closed edwardsph closed 8 years ago

edwardsph commented 8 years ago

This is not an issue with Callimachus as such but the version of Calabash we are using has a problem with spaces that are URL encoded as + signs. We will need to get a new release of Calabash with this fix or patch ours: https://github.com/ndw/xmlcalabash1/issues/216

The workaround is to process the +s into %20s before the data is sent to the pipeline:

        beforeSend: function(jqXHR, settings) {
            // encode spaces as %20 since XProc fails to decode +
            settings.data = settings.data.replace(/\+/g,'%20');
        }