src/common/apacheconfig.cc
bool ApacheConfig::MakeAbsolutePath(std::string* path) {
  if (path->length() == 0) {
    return false;
  }

  if ((*path)[0] != '/') {
    if (serverroot_.length() == 0) {
      return false;
    } else {
      *path = serverroot_ + "/" + *path;
    }
  }
  return true;
}
// if it is relative, it should be made as absolute one with serverroot_
if it is relative, it should be made as absolute one with serverroot_
if it is relative it should be made as absolute one with serverroot_
bool ApacheConfig::MakeAbsolutePath(std::string* path) {
  if (path->length() == 0) {
    return false;
  }
  if ((*path)[0] != '/') {
    if (serverroot_.length() == 0) {
      return false;
    } else {
      *path = serverroot_ + "/" + *path;
    }
  }
  return true;
}
bool ApacheConfig :: MakeAbsolutePath ( std :: string * path ) { if ( path -> length ( ) == 0 ) { return false ; } if ( ( * path ) [ 0 ] != ' ' ) { if ( serverroot_ . length ( ) == 0 ) { return false ; } else { * path = serverroot_ + " " + * path ; } } return true ; }
if it is relative, it should be made as absolute one with serverroot_
if it is relative it should be made as absolute one with serverroot_