This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Added Test for CGI::Fast
[perl5.git] / util.c
diff --git a/util.c b/util.c
index 5c5da23..0026909 100644 (file)
--- a/util.c
+++ b/util.c
@@ -3719,6 +3719,10 @@ Perl_getcwd_sv(pTHX_ register SV *sv)
 {
 #ifndef PERL_MICRO
 
+#ifndef INCOMPLETE_TAINTS
+    SvTAINTED_on(sv);
+#endif
+
 #ifdef HAS_GETCWD
     {
        char buf[MAXPATHLEN];