From bddb9539f71cfcfd5d13a721903ae54f8a08bfea Mon Sep 17 00:00:00 2001 From: Alex Waugh Date: Sun, 4 Nov 2001 12:46:30 +0000 Subject: [PATCH] Convert PATH_TRANSLATED for RISC OS --- sapi/cgi/cgi_main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 5c71db425cff0..1907f46dde60f 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -64,6 +64,10 @@ #include #endif +#ifdef __riscos__ +#include +#endif + #include "zend_compile.h" #include "zend_execute.h" #include "zend_highlight.h" @@ -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); } }