TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Please review my project

6 点作者 andrewoons大约 11 年前
We created a simple tool for asking quick questions and getting extremely fast answers to that question. The generated url for the question is easily shareable.<p>We would love some feedback on our project so we can improve it and make it even more fun and simple to use.<p>The url is http:&#x2F;&#x2F;fastask.it<p>Thanks in advance!

9 条评论

computer大约 11 年前
You forgot to escape your HTML output.<p><a href="http://fastask.it/%3Cscript%3Ealert%28%22asdf%22%29;%3C/script%3E" rel="nofollow">http:&#x2F;&#x2F;fastask.it&#x2F;%3Cscript%3Ealert%28%22asdf%22%29;%3C&#x2F;scri...</a><p>Also, there&#x27;s SQL injections too:<p><a href="http://fastask.it/%27" rel="nofollow">http:&#x2F;&#x2F;fastask.it&#x2F;%27</a><p><a href="http://fastask.it/%27%20OR%201=1;--" rel="nofollow">http:&#x2F;&#x2F;fastask.it&#x2F;%27%20OR%201=1;--</a><p>And you can vote more than once, because there&#x27;s no server-side check: (ignore the question text)<p><a href="http://fastask.it/register_votephp" rel="nofollow">http:&#x2F;&#x2F;fastask.it&#x2F;register_votephp</a><p>Also, including a slash in a question (like &quot;Red is good, yes&#x2F;no&quot;) breaks your layout due to relative paths:<p><a href="http://fastask.it/a/b" rel="nofollow">http:&#x2F;&#x2F;fastask.it&#x2F;a&#x2F;b</a><p>The maximum length of questions is also only validated on the client. This question is longer than the normally allowed length:<p><a href="http://fastask.it/asdf-asdf-asdf-asdf-asdf-asdf-asdf-asdf-asdf-asdf-asdf-asdf-asdf-asdf-324234324432432324432234234" rel="nofollow">http:&#x2F;&#x2F;fastask.it&#x2F;asdf-asdf-asdf-asdf-asdf-asdf-asdf-asdf-as...</a><p>Your server side cuts too long questions off at some point too; this was originally 8kb of periods, plus the string &quot;8kb&quot;:<p><a href="http://fastask.it/8kb" rel="nofollow">http:&#x2F;&#x2F;fastask.it&#x2F;8kb</a><p>I think it&#x27;s now 225 periods, so that might be the size of your &quot;ask&quot; column in the question table.<p>Also, if you click a vote button really fast you can vote multiple times (until a request success callback is called and the button is faded away).<p>Also, the &quot;No&quot;-button seems to have stopped disabling itself entirely, at least for me.<p>You should probably read up prepared statements for MySQL, about input sanitizing, and security in general :)<p>In terms of the non-technical side: I had no idea what was going to happen after I clicked &quot;Create&quot;. If you promise Instant answers, why would the button be named &quot;Create&quot; and not &quot;Answer&quot;? But the questions are not answered <i>Instantly</i>, so I would remove that term from your entire site.<p>I&#x27;d term it &quot;polling&quot; instead of &quot;asking a question&quot;&#x2F;getting &quot;answers&quot; as well, since it&#x27;s just yes&#x2F;no. And what use-cases do you have in mind? If it&#x27;s for group emails or quick polls or whatever, perhaps add a comment box for responses that are more than just yes or no.
maddisc2大约 11 年前
HI<p>I think it should say get instant yes&#x2F;no answers to simple questions.<p>A border round the input box might be worth while, but I am old school!<p>Good luck with it!
jsegura大约 11 年前
If you type a &quot;?&quot; in the textbox it generate the following link: &quot;<a href="http://fastask.it/&quot;" rel="nofollow">http:&#x2F;&#x2F;fastask.it&#x2F;&quot;</a>. I think that in that if the question has no printable characters (?, space, enter) you should behave as if no answer is entered.<p>What do you think?
v08i大约 11 年前
<a href="http://fastask.it/%3Cscript%3Ealert%28&#x27;test&#x27;%29;%3C/script%3E" rel="nofollow">http:&#x2F;&#x2F;fastask.it&#x2F;%3Cscript%3Ealert%28&#x27;test&#x27;%29;%3C&#x2F;script%3...</a><p>This link is throwing a PDO exception and has exposed your server path which is potentially dangerous.
lbr大约 11 年前
It&#x27;s very simple. But your description is unclear: &gt;a simple tool for asking quick questions and getting extremely fast answers to that question.<p>It&#x27;s really a tool for creating and sharing simple yes&#x2F;no polls.
known大约 11 年前
Try <a href="http://www.coverity.com/" rel="nofollow">http:&#x2F;&#x2F;www.coverity.com&#x2F;</a>
ColinWright大约 11 年前
Clickable: <a href="http://fastask.it" rel="nofollow">http:&#x2F;&#x2F;fastask.it</a>
mattgecko大约 11 年前
You should make it obvious that it needs to be a Yes or No answer question
评论 #7639296 未加载
ryanshaun大约 11 年前
<a href="http://fastask.it/am-i-gay" rel="nofollow">http:&#x2F;&#x2F;fastask.it&#x2F;am-i-gay</a>