diff --git a/CGIFormData.cpp b/CGIFormData.cpp index ca969b3..589c378 100644 --- a/CGIFormData.cpp +++ b/CGIFormData.cpp @@ -21,7 +21,8 @@ namespace coreutils { MString CGIFormData::operator[](ZString name) { // if(contentType == "application/x-www-form-urlencoded") // return formdata[name]; - return name; + MString temp(name); + return temp; } } diff --git a/testing/jfile_test b/testing/jfile_test index 6dda3b7..3271a2a 100755 Binary files a/testing/jfile_test and b/testing/jfile_test differ diff --git a/testing/mfile_test b/testing/mfile_test index 92678a8..dc7ae5c 100755 Binary files a/testing/mfile_test and b/testing/mfile_test differ diff --git a/testing/mstring_test.cpp b/testing/mstring_test.cpp index 812835e..851a8de 100644 --- a/testing/mstring_test.cpp +++ b/testing/mstring_test.cpp @@ -1,6 +1,11 @@ #include #include "../MString.h" +coreutils::ZString testcast(coreutils::ZString data) { + std::cout << "in proc: " << data << std::endl; + return data; +} + int main(int argc, char **argv) { // Literal string assignment tests. @@ -108,7 +113,13 @@ int main(int argc, char **argv) { coreutils::MString test33 = test32.toBase64(); std::cout << test33 << " from base64 " << test33.fromBase64() << std::endl; - + + coreutils::ZString test34 = test31; + std::cout << test31 << " to zstring " << test34 << std::endl; + + test34 = testcast(test31); + std::cout << test31 << " to zstring " << test34 << std::endl; + return 0; }