1
0
Fork 0
Commit Graph

52 Commits

Author SHA1 Message Date
peterbell10 13144a08e4
Enable some more clang-tidy linter checks (#4738)
* Avoid inefficient AString -> c_str() -> AString round trip

* Avoid redundant string init expressions

* Avoid unnecessary return, continue, etc.

* Add .clang-format to help with clang-tidy fix-its

* Avoid unnecessary passing by value

* Avoid unnecessary local copying

* Avoid copying in range-for loops

* Avoid over-complicated boolean expressions

* Some violations missed by my local clang-tidy

* Allow unnecessary continue statements

* Add brackets

* Another expression missed locally

* Move BindingsProcessor call into clang-tidy.sh and add space

* Fix pushd not found error

* Different grouping of CheckBlockInteractionRate
2020-05-14 22:15:35 +00:00
Mat c710f6a4ea
Remove old Android leftovers (#4722) 2020-05-07 22:14:00 +03:00
Wilhem Barbier 85006d10f5 Fix directory traversal bug (#4341)
Refuse to serve an URL containing `../`.
2019-06-11 10:33:56 +02:00
peterbell10 e225b7f826 Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
LogicParrot 49c443896d Revert "Replace ItemCallbacks with lambdas (#3948)"
This reverts commit 496c337cdf.
2017-09-02 08:50:23 +01:00
peterbell10 496c337cdf Replace ItemCallbacks with lambdas (#3948) 2017-09-01 13:04:50 +02:00
peterbell10 a56cfd1f42 Remove smart pointer macros 2017-07-21 14:41:51 +01:00
mathiascode 4656be19b7 Removed development plugins from settings file 2017-03-19 21:54:01 +01:00
Mattes D dfb5722fb1 WebAdmin: Renamed two neighboring locks for better clarity / style. 2017-01-18 22:44:44 +01:00
Mattes D 20205d33ba Webadmin: Added a missing CS lock.
This fixes an assert when accessing the login-page and the plugin-failure pages in the webadmin.
2017-01-18 16:30:28 +01:00
Mattes D b3b723b453 Refactored to put URL Encoding / Decoding in a single place. (#3491) 2016-12-25 18:29:21 +01:00
Mattes D af8c96026d Removed cWebPlugin, WebAdmin uses cLuaState::cCallback. 2016-06-27 20:51:48 +02:00
Mattes D e3d34d9917 Revert "Lua callback" 2016-03-21 09:58:15 +01:00
Mattes D 62d81eb763 Removed cWebPlugin, WebAdmin uses cLuaState::cCallback. 2016-03-17 19:29:01 +01:00
Mattes D 4bf2dd2d2b WebAdmin: Finish HTTP responses. 2016-03-03 13:46:45 +01:00
Mattes D 71a1fa81f0 Renamed HTTPResponse to HTTPOutgoingResponse. 2016-03-01 16:19:59 +01:00
Mattes D 52d18b4559 WebAdmin uses the new HTTP parser framework. 2016-03-01 16:19:58 +01:00
Mattes D fea556ca1b Renamed HTTPServer folder to HTTP.
It contains client code as well.
2016-03-01 16:19:56 +01:00
Mattes D b92346e3cc Moved cHTTPRequest to a separate file, renamed to cHTTPRequestParser. 2016-03-01 16:19:55 +01:00
Mattes D 2dbc54a148 Renamed the HTTP classes to indicate they're for server. 2016-03-01 16:19:55 +01:00
LogicParrot ca6ef58b1e Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Mattes D 82d9ac1e1c Namechange to Cuberite 2015-09-25 10:14:17 +02:00
tycho b2fa71a32a Fix comments 2015-05-28 12:54:04 +01:00
tycho dae9e5792a Made -Weverything an error. 2015-05-24 12:56:56 +01:00
Mattes D 846d16315a CheckBasicStyle: checks spaces around * and &. 2015-05-09 12:58:55 +02:00
Mattes D de27f66b59 Added URL member to the HTTPRequest API class. 2015-04-21 10:54:43 +02:00
Mattes D 288d2280fa Refactored cWebPlugin for C++11 style and proper WebTab clearing. 2015-04-19 14:35:04 +02:00
Mattes D a9b5a6c3a6 Split the plugin names and plugin folders to avoid confusing them.
Ref.: http://forum.mc-server.org/showthread.php?tid=1877
2015-04-19 10:57:41 +02:00
Mattes D f477b524bb WebAdmin uses the new cNetwork API. 2015-01-27 14:53:26 +01:00
Tiger Wang a26541a7c3 En masse NULL -> nullptr replace 2014-10-22 20:12:49 -07:00
Mattes D d2c1518145 Webadmin: Added default ports to auto-generated ini file.
Fixes #1382.
2014-09-07 19:45:15 +02:00
Howaner 017235e15c [WebAdmin] Code improvements. 2014-09-02 20:02:52 +02:00
Howaner e67bb7f431 WebAdmin: Stop webadmin if template can't load. 2014-08-31 15:03:23 +02:00
Howaner 7e5f22141f WebAdmin: Added "files" folder and load the login template from login_template.html 2014-08-31 12:59:04 +02:00
Tycho 2321d2af41 Fixed shadowing variable 2014-08-13 12:01:13 +01:00
Tycho 60ea4bb937 Removed unused method 2014-08-13 11:56:47 +01:00
madmaxoft dcef688ccc WebAdmin: Added GetURLEncodedString(). 2014-08-09 22:56:06 +02:00
madmaxoft 93d29555e5 Style: Normalized to no spaces before closing parenthesis. 2014-07-21 17:40:43 +02:00
madmaxoft 6be79575fd Style: Normalized spaces after if, for and while. 2014-07-21 17:38:50 +02:00
madmaxoft 2423fbf2ef Normalized comments.
This was mostly done automatically and then visually inspected for obvious errors.
All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
2014-07-17 22:15:34 +02:00
madmaxoft 7fff12bfac Fixed spaces around single-line comments.
There should be at least two spaces in front and one space after //-style comments.
2014-07-17 19:13:23 +02:00
archshift e8143de01b Nullify deleted pointers. 2014-06-19 01:49:56 -07:00
madmaxoft ab2dfb44fa If webadmin.ini doesn't exist, example one is written immediately. 2014-04-30 17:37:25 +02:00
Tycho d15743df1c Removed old unused code 2014-04-27 12:41:22 -07:00
jfhumann 013da806ec Did some static analysis, fixed some bugs and optimized a lot of code 2014-04-18 21:09:44 +02:00
madmaxoft 1795cca552 Rewritten HTTPServer to use size_t for data lengths. 2014-04-01 16:36:00 +02:00
madmaxoft 0c15fdf7b0 Moved Lua API registering into a separate function.
This will allow us to use Lua as lite-config files as well, should we want to.
2014-03-12 13:05:28 +01:00
madmaxoft e165da946e WebAdmin is stopped properly on server shutdown / restart.
Fixes #272.
2014-02-07 12:26:41 +01:00
Tycho Bickerstaff 9ebc623a0a fixed warnings in webadmin.cpp 2013-12-31 09:16:41 +01:00
STRWarrior b424877448 Fixed getting configure button going to port 0. 2013-12-24 14:44:24 +01:00