#2176: php connector: apache_lookup_uri failure not handled
----------------------+-----------------------------------------------------
Reporter: brondsem | Type: Bug
Status: new | Priority: Normal
Milestone: | Component: Server : PHP
Version: | Keywords:
----------------------+-----------------------------------------------------
In the php connector's io.php in Server_MapPath, apache_lookup_uri is
used. If it fails for some reason, a warning is displayed and a wrong
value is returned. This ends up with something like this:
{{{
<b>Warning</b>
: apache_lookup_uri() [
<a href="function.apache-lookup-uri">function.apache-lookup-uri</a>
]: Unable to include '/../assets/pages/3076/Image/' - error finding URI in
−
<b>
/home/myuser/web/mysite/common/fckeditor2.5.1/editor/filemanager/connectors/php/io.php
</b>
on line
<b>167</b>
<br/>
<Error number="1" text="Error creating folder "" (Can't create
directory)"/>
}}}
I am using this workaround which seems to work well:
{{{
$info = @apache_lookup_uri( $path ) ;
if ($info != null)
return $info->filename . $info->path_info ;
}}}
--
Ticket URL: <http://dev.fckeditor.net/ticket/2176>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac