+ in fill_script_path() : scipt_path and script_info are filled, removing leadin dot

+ in _cgi_pos() : check validity of extension if it's only alpha characters
+ severall pbm appears
This commit is contained in:
hugogogo
2022-08-13 14:38:50 +02:00
parent defb2ada61
commit 285f2d049f
8 changed files with 60 additions and 43 deletions

View File

@@ -11,6 +11,7 @@
# include <arpa/inet.h> // htonl, htons, ntohl, ntohs, inet_addr, inet_ntoa
# include "utils.hpp"
# include "ServerConfig.hpp"
# include "colors.h"
struct Script
{
@@ -76,7 +77,7 @@ class Client
void clear();
void clear_request();
void clear_script();
void fill_script_path(const std::string &path, size_t pos);
void fill_script_path(std::string &path, size_t pos);
// DEBUG
void print_client(std::string message = "");