Loading src/html.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -1703,7 +1703,7 @@ void libhtmlpp::HtmlElement::setAttribute(const std::string &name, const std::st auto checkForbidden = [forbidden](const std::string &input){ for(size_t i = 0; i<input.length(); ++i){ for(size_t ii=0; forbidden[ii]; ++ii){ if(ii>i){ if(ii<i){ return false; } if(input[i]==forbidden[i]){ Loading test/CMakeLists.txt +2 −0 Original line number Diff line number Diff line Loading @@ -22,3 +22,5 @@ target_link_libraries(htmlinserttest htmlpp-static) add_executable(htmlostreamtest ostream.cpp) target_link_libraries(htmlostreamtest htmlpp-static) add_test(htmlostreamtest htmlostreamtest ${CMAKE_SOURCE_DIR}/test/htmlfiles/right.html) Loading
src/html.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -1703,7 +1703,7 @@ void libhtmlpp::HtmlElement::setAttribute(const std::string &name, const std::st auto checkForbidden = [forbidden](const std::string &input){ for(size_t i = 0; i<input.length(); ++i){ for(size_t ii=0; forbidden[ii]; ++ii){ if(ii>i){ if(ii<i){ return false; } if(input[i]==forbidden[i]){ Loading
test/CMakeLists.txt +2 −0 Original line number Diff line number Diff line Loading @@ -22,3 +22,5 @@ target_link_libraries(htmlinserttest htmlpp-static) add_executable(htmlostreamtest ostream.cpp) target_link_libraries(htmlostreamtest htmlpp-static) add_test(htmlostreamtest htmlostreamtest ${CMAKE_SOURCE_DIR}/test/htmlfiles/right.html)