Hey there,
It seems since the 6.x-3.0 release the pathing doesn't seem to be being handled correctly ?
I have a set up where images (for example) originally have the path "/sites/all/themes...." etc. Our development environment has changed somewhat and now uses the structure http://192.168.xxx.xxx/~chroid/sitename
When using pathologic to rewrite '/' this previously worked fine in the latest 6.x-2.0 version but seems to give a path double up and doesnt decode the ~ character. Resulting in something like http://192.168.xxx.xxx/%7Echroid/sitename/.
I haven't been able to test another dev site as yet.
Am I missing something ??
Regards
Chris
Comments
Comment #1
gtorti commentedHello
I have the same problem with image that have special caracters or spaces in the name (for exemple 'Evénement CO2.jpg'). Of course it's not the best way to name an image, but my users did it.
This worked well with the version before 6.x-3.0 release.
I hope this will be resolved quickly.
Regards
Georges
Comment #2
chroid commentedAh, good to see that someone else is having similar problems, we can put this down to a code bug then ?
Comment #3
Garrett Albright commentedLinking to a path of just "/" not working is definitely a regression. I've already committed a fix to the D7 branch and will backport it to D6 soon.
However, I don't think that URL encoding a path is a bug. Pathologic isn't doing it anyway - most likely, Drupal's url() function is doing it. Is this actually breaking your links somehow?
Comment #4
Garrett Albright commentedLinking to / fixed in these newest releases.
Comment #6
Goldhorn commentedWe also have the problem that special characters are converted to %xx. And this will break the links. This only happens when we activate Pathologic, so I don't think it is a Drupal thing, as said before.
Can anyone help us fix this?
Comment #7
Garrett Albright commentedGoldhorn, could you give me more info? What's an example of a path on which this is happening? Does this still happen if you disable all input filters in the format except Pathologic?
Comment #8
rjacobs commentedWe are seeing this as well with 3.x-6.4.
As an example, if we have an image in a node with the source "/sites/default/files/images/one & two.jpg", it will get encoded (at least via insertion though IMCE) as "/sites/default/files/images/one%20%26%20two.jpg". This will display fine if all input filters are turned off. However, if pathologic filter is turned on it will become encoded as "/sites/default/files/images/one%20%2526%20two.jpg" in the final source, which leads to a broken image link.
Perhaps this is an edge case (weird file naming convention + IMCE link encoding + pathologic), but I think it speaks to the same problems others may be reporting.
Comment #9
Garrett Albright commentedWell, D6 development is dead, I'm afraid, as I myself am not using the D6 version anywhere… But if you can hack up a patch, I may be able to submit it.
Comment #10
dealancer commentedHey guys,
This happens for D7 version of the module also. I have found the same issue and fixed it! See
http://drupal.org/node/1303782#comment-5128296
I can commit it both to D6 and D7 versions of Pathologic.
Comment #11
Garrett Albright commentedClosing because this will never be worked on.