crossroadlabs / Express

Swift Express is a simple, yet unopinionated web application server written in Swift
GNU General Public License v3.0
848 stars 47 forks source link

Crash after seinding POST form form with encoded symblos #17

Open killev opened 8 years ago

killev commented 8 years ago

Request Headers Provisional headers are shown

Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Content-Type:application/x-www-form-urlencoded
Origin:http://192.168.50.130:9999
Referer:http://192.168.50.130:9999/?param=123456
Upgrade-Insecure-Requests:1
User-Agent:Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36

Query String Parameters param:123456 Form Data param:%F0%F3%F1%F1%EA%E8%E9

Form:


<html>
<body>
<form method="POST" action = "/?param=123456"><input name="param" type="text"/><input type="submit"/></form>
<br>
Submitted: {{submitted}}
</body>

</html>

Entered value: "Русский язык"

dileping commented 8 years ago

@killev Certainly is a bug. Will see if libevent can handle this at all. If not, will fix in version 0.4 where we plan to get rid of libevent completely.

Jxrgxn commented 8 years ago

Well, well, well, I guess I found my chance to contribute.

dileping commented 8 years ago

@KacheFlowe Awesome! Will appreciate it a lot!