Skip to content

Commit

Permalink
Convert PATH_TRANSLATED for RISC OS
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Waugh committed Nov 4, 2001
1 parent f1e32a8 commit bddb953
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sapi/cgi/cgi_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
#include <signal.h>
#endif

#ifdef __riscos__
#include <unixlib/local.h>
#endif

#include "zend_compile.h"
#include "zend_execute.h"
#include "zend_highlight.h"
Expand Down Expand Up @@ -703,6 +707,11 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
env_path_translated = getenv("PATH_TRANSLATED");
#endif
if(env_path_translated) {
#ifdef __riscos__
/* Convert path to unix format*/
__riscosify_control|=__RISCOSIFY_DONT_CHECK_DIR;
env_path_translated=__unixify(env_path_translated,0,NULL,1,0);
#endif
SG(request_info).path_translated = estrdup(env_path_translated);
}
}
Expand Down

0 comments on commit bddb953

Please sign in to comment.