Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.9k views
in Q2A Core by
I've noticed the Q&A source does not include a VERSION.txt or something similar.  In fact searching the code and the installed site I can't find a single instance of a version number.

Am I missing something?  How can I find out the version of an install?
Q2A version: That's the question. I don't know

1 Answer

0 votes
by
selected by
 
Best answer

Look at the top of qa-include/qa-base.php, where it defines QA_VERSION.

by
Thanks.  I found QA_VERSION.  I'm running 1.5.  btw I think a VERSION.txt in the source root with only QA_VERSION would be helpful if it's not too much trouble.
by
@ralphlaw - good idea - I'll add that in Q2A 1.5.1.
by
The only problem I see with that, is if there is a security issue with a version, someone could easily find all sites that are of that version and exploit them.
by
I see the risk, but in any event the version number can also be detected from the CSS and Javascript references. And for the same price as retrieving VERSION.txt, the hacker could just perform whatever request exposes the vulnerability, and see if it works. Luckily, none found so far... :)
...