Ignore:
Timestamp:
Apr 5, 2009, 12:12:15 AM (16 years ago)
Author:
gah
Message:

fixed encoding problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/RpLibrary.cc

    r1366 r1382  
    15391539    inData = Rappture::Buffer(retCStr);
    15401540
    1541     if (Rappture::encoding::isencoded(inData.bytes(),inData.size()) != 0) {
     1541    if (Rappture::encoding::headerFlags(inData.bytes(),inData.size()) != 0) {
    15421542        // data is encoded,
    15431543        // coming from an rplib, this means it was at least base64 encoded
     
    17571757    // FIXME: I've already appended a NUL-byte of this assuming that
    17581758    //        it's a ASCII string. This test must come before.
    1759     if (Rappture::encoding::isbinary(value.c_str(), value.length()) != 0) {
     1759    if (Rappture::encoding::isbinary(value.c_str(), value.length())) {
    17601760        putData(path, value.c_str(), value.length(), append);
    17611761        return *this;
Note: See TracChangeset for help on using the changeset viewer.