Still working out cgi variable stuff.
This commit is contained in:
1 parent
ab748802ee
commit
1542fbe218
4 files changed
+13
-1
No files matched your search
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,11 @@
|
||||
#include <iostream>
|
||||
#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.
|
||||
@@ -109,6 +114,12 @@ 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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user