Skip to content

lws_get_urlarg_by_name_safe  #3227

Closed
Closed
@horchi

Description

@horchi

Hello,

with this url arguments:
what=queue&name=tangolegkuscoinfoobar&day=20240927&type=update

and this code:

      lws_get_urlarg_by_name_safe(wsi, "day=", day, sizeof(day));

I get -1

As I understand the description, the buffer must be large enough for name and value.

If I correctly understand the implementation, the buffer must be large enough for the longest 'name=value' pair (at least for the ones before the searched one)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions