Ticket #157 (closed defect: duplicate)

Opened 10 months ago

Last modified 10 months ago

Problem in r1335 'direct URLs'

Reported by: Starjive Owned by:
Priority: major Milestone: 0.4
Component: Habari Core Software Version: SVN
Keywords: has_patch Cc:

Description

I think the problem is in revision 1335 http://trac.habariproject.org/habari/changeset/1335 but i really don't know. On my windows server the directory is using both / and \ at the same time. I don't imagine it would be happy supporting both at the same time. The get_url patch did need something else. The ability to add a trailing slash.

Exempel for TinyMCE plugin.

I get the following:

src="http://localhost\user\plugins\tinymce/tiny_mce/tiny_mce.js"

It should be:

src="http://localhost/user/plugins/tinymce/tiny_mce/tiny_mce.js"

I don't have any solution for it, but itrebal wrote something on irc

function arraytodir($arr) { return implode($arr, DIRECTORY_SEPARATOR); }

Change History

Changed 10 months ago by michaeltwofish

  • status changed from new to closed
  • resolution set to invalid

This is an issue with the TinyMCE plugin on Windows, not Habari.

Changed 10 months ago by michaeltwofish

  • status changed from closed to reopened
  • resolution invalid deleted

Seems I was too quick to close this ticket. URL::get_from_filesystem() was inserting \ as a path separator in the produced URL on windows machines. The patch in #158 includes a fix for this bug.

Changed 10 months ago by morydd

  • keywords has_patch added

Changed 10 months ago by dmondark

  • status changed from reopened to closed
  • resolution set to duplicate

Fix for this one is included in #158.

Note: See TracTickets for help on using tickets.