Ver código fonte

http get requests need to be dequoted

David Kalnischkies 14 anos atrás
pai
commit
59fe94ea01
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      test/interactive-helper/aptwebserver.cc

+ 2 - 0
test/interactive-helper/aptwebserver.cc

@@ -311,6 +311,8 @@ int main(int const argc, const char * argv[])
 	    std::string filename = m->substr(5, filestart - 5);
 	    std::string filename = m->substr(5, filestart - 5);
 	    if (filename.empty() == true)
 	    if (filename.empty() == true)
 	       filename = ".";
 	       filename = ".";
+	    else
+	       filename = DeQuoteString(filename);
 
 
 	    if (simulate_broken_server == true) {
 	    if (simulate_broken_server == true) {
 	       std::string data("ni ni ni\n");
 	       std::string data("ni ni ni\n");