Closed (fixed)
Project:
Ubercart
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
11 Jun 2009 at 17:11 UTC
Updated:
31 May 2010 at 13:50 UTC
Jump to comment: Most recent file
Please review the discussion in #488300: Pathologic screws up paths given using tokens.
When you have text that uses tokens and the text also needs to be run through an input filter, the tokens should be processed first so that the input filter can operate on the results.
In the bug report referenced, the pathologic filter changes href="[order-url]" into href="https://somesite.com/[order-url]" which then becomes "https://somesite.com/https://somesite.com/...". Other filters may also fail to work properly.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | uc_cart.module.patch | 2.08 KB | anrikun |
| #4 | uc_cart.module.patch | 2.13 KB | anrikun |
Comments
Comment #1
donquixote commentedsubscribe
Comment #2
tr commentedOK, I read the issue you referred to, and I see what you mean. Can you point out (preferably with a patch) exactly what changes you propose to make in Ubercart to fix the problem?
Comment #3
anrikun commented+1 Subscribing
I'm having the same issue (without using Pathologic).
Also, arbitrarily wrapping <p> tags around filtered texts without knowing their contents is not a good idea as it might result in invalid XHTML.
(Seen in uc_cart.module uc_cart_complete_sale() function)
Comment #4
anrikun commentedHere's a patch that fixes this issue.
For compatibility, I have not changed the <p> tags.
This patch is for 6.x-2.2.
Comment #5
tr commentedIs that the only place that this has to be fixed, or does this problem also occur elsewhere in Ubercart?
Comment #6
anrikun commentedYes it is the only place.
Comment #7
anrikun commentedFinally, I have removed the <p> tags as they should definitely not be added.
Here is the updated patch.
This patch is for 6.x-2.2.
Comment #8
opteronmx commented#7 Confirmed, Applied and Tested, appears to work well.
Thanks anrikun!
Comment #9
anrikun commentedThen I guess we can update this issue's status.
Thanks for your review!
Comment #10
Island Usurper commentedI was a little concerned that without the
<p>tags, all of the messages would run together. But it looks like the filters will be taking care of that automatically.So, thanks for the patch! Committed to DRUPAL-6--2.