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

gtorti’s picture

Priority: Normal » Critical

Hello
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

chroid’s picture

Component: User interface » Code

Ah, good to see that someone else is having similar problems, we can put this down to a code bug then ?

Garrett Albright’s picture

Linking 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?

Garrett Albright’s picture

Status: Active » Fixed

Linking to / fixed in these newest releases.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Goldhorn’s picture

Version: 6.x-3.0 » 6.x-3.4
Status: Closed (fixed) » Active

We 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?

Garrett Albright’s picture

Goldhorn, 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?

rjacobs’s picture

We 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.

Garrett Albright’s picture

Well, 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.

dealancer’s picture

Status: Active » Needs review

Hey 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.

Garrett Albright’s picture

Status: Needs review » Closed (won't fix)

Closing because this will never be worked on.