Browse Source

fix: correctly sort post variables when they have the same name

In PostParser we add some prefix with a number if the name of a variable is the same,
we should use zero padding for the number to be correctly sorted.
master
Tomasz Sowa 3 months ago
parent
commit
3b5658ff8f
  1. 4
      winixd/core/postparser.h

4
winixd/core/postparser.h

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2008-2021, Tomasz Sowa
* Copyright (c) 2008-2022, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -111,7 +111,7 @@ protected:
if( !added )
{
name += L"_inc";
name += Toa(var_index);
pt::Toa(var_index, name, false, 10, 5);
res = post_tab->insert( std::make_pair(name, value) );
added = res.second;
var_index += 1;

Loading…
Cancel
Save