Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: warmcat/libwebsockets
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: mangodan2003/libwebsockets
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 30 files changed
  • 1 contributor

Commits on Jun 8, 2016

  1. introduce urlencode decode and sql escape public apis

    This adds
    
     - simple lws_urlencode()
     - simple lws_urldecode()
     - simple lws_sql_purify
    
    Those expect the data to all be there and process it up until
    the first '\0'.
    
    There is also a larger opaque apis for handling POST_BODY urldecode.  To
    enable these, you need to give cmake -DLWS_WITH_STATEFUL_URLDECODE=1 (or
    arrange any larger feature that relies on it sets that in CMakeLists.txt)
    
     - stateful urldecode with parameter array
    
    These have create / process / destroy semantics on a struct that maintains
    decode state.
    
    Stateful urldecode is capable of dealing with large POST data in multiple
    POST_BODY callbacks cleanly, eg, file transfer by POST.
    
    Stateful urldecode with parameter array wraps the above with a canned
    callback that stores the urldecoded data and indexes them in a pointer
    array matching an array of parameter names.
    
    You may also pass it an optional callback when creating it, so it can filter
    out bulk (file transfer) data and handle it outside the name=value parameter
    storage.
    
    Signed-off-by: Andy Green <andy@warmcat.com>
    lws-team committed Jun 8, 2016
    Configuration menu
    Copy the full SHA
    50708a1 View commit details
    Browse the repository at this point in the history
  2. protocol generic sessions

    Signed-off-by: Andy Green <andy@warmcat.com>
    lws-team committed Jun 8, 2016
    Configuration menu
    Copy the full SHA
    9601c1b View commit details
    Browse the repository at this point in the history
Loading