734 Commits

Author SHA1 Message Date
hiro
324c6579c2 Move directory_listing function 2019-06-13 12:41:12 +02:00
hiro
4551716a9e Refactor set_file_list between website and share mode 2019-06-13 12:34:27 +02:00
hiro
30dc17df27 Start code sharing between WebsiteMode and ShareMode 2019-06-13 12:34:27 +02:00
Micah Lee
e4b0f04504 Strip NoScript XSS warning, because the Tor Browser bug it addressed has been fixed 2019-05-29 19:27:21 -07:00
Micah Lee
ae110026e7 Generate a new static_url_path each time the server is stopped and started again 2019-05-29 18:21:53 -07:00
Micah Lee
4fd8a95853 Merge branch 'develop' into basic_auth_everywhere 2019-05-24 18:13:44 -07:00
hiro
1c05ccb611 Resolve bugs from initial PR 2019-05-24 10:08:51 +02:00
Micah Lee
3578e7d540 Allow static resources without basic auth 2019-05-22 20:15:49 -07:00
Micah Lee
b2b72a6b31 Make static folder URL have a high-entropy random path, to avoid filename collisions with files getting shared 2019-05-22 20:07:35 -07:00
Micah Lee
b2c155991e Don't need BaseShareMode yet 2019-05-22 19:55:55 -07:00
Micah Lee
403125f844 Update ReceiveMode to no longer rely on slugs 2019-05-21 10:18:40 -07:00
Micah Lee
3ab99dbf3b Fix building the URL in CLI mode, and removing the slug from the download button in share mode 2019-05-21 10:08:54 -07:00
Micah Lee
7dce7eec45 Rename "slug" to "password" 2019-05-20 22:18:49 -07:00
Micah Lee
5aceb5ad2c Make the shutdown get request use the onionshare user for basic auth 2019-05-20 22:02:43 -07:00
Micah Lee
71c2ae80ec Make shutdown slug use http basic auth also, so the shutdown command doesnt fail with a 401 2019-05-20 20:01:14 -07:00
Micah Lee
1c09ed5596 Fix onionshare URLs non-public mode is always http basic auth 2019-05-20 19:22:03 -07:00
Micah Lee
6442baf4dd Simplify share and receive mode so they no longer need to worry about slug_candidates 2019-05-20 19:11:24 -07:00
Micah Lee
c39705f978 Add an error 401 handler, and make it start counting invalid password guesses instead of 404 errors for rate limiting 2019-05-20 19:04:50 -07:00
Micah Lee
e0e7250244 Move HTTP basic auth logic from WebsiteMode to Web, so it applies to all modes 2019-05-20 17:59:20 -07:00
Micah Lee
5522e2a3f0 Fix bugs in how self.file was building the dictionary, so now browsing works 2019-05-10 14:52:07 -07:00
Micah Lee
ae54ef076e Make it so directory listings work, including root directory listing 2019-05-10 14:04:13 -07:00
Micah Lee
2299059304 Starting to refactor website sharing so set_file_info builds a dict of all files, and path_logic will display any arbitrary file, or directory listing if no index.html is present 2019-05-10 13:43:46 -07:00
Micah Lee
c12230b9b1 Merge branch 'static-websites' of https://github.com/hiromipaw/onionshare into hiromipaw-static-websites 2019-05-10 09:46:54 -07:00
hiro
b3a87f6354 Clean code and fix UI bugs 2019-05-08 00:04:09 +02:00
Micah Lee
b872ac1152 Version bump to 2.1, updated changelog, and fixed typo in a comment 2019-05-06 15:46:51 -07:00
Micah Lee
d00562e553 Missed commas in list 2019-05-06 14:31:56 -07:00
Micah Lee
8d9b3d7bcc Update available_locales in settings, and rename no.json to nb.json (Norwegian Bokmål) 2019-05-06 14:31:11 -07:00
hiro
8eeb043ee2 Fix merge conflicts with upstream 2019-04-23 16:20:33 +02:00
hiro
6cc1d90e92 Clean ui, add strings, fix web listing logic 2019-04-23 16:11:14 +02:00
hiro
ef6db20674 Add gui for website sharing and listing 2019-04-23 16:09:40 +02:00
hiro
50850ad679 Add website sharing and directory listing cli-only 2019-04-23 16:08:14 +02:00
Micah Lee
fa7927725a Remove more CLI strings 2019-04-21 12:58:53 -07:00
Miguel Jacq
ddcf6990ff Fix loading custom config if provided 2019-04-20 14:43:04 +10:00
Miguel Jacq
62e668addd Unlocalize CLI strings 2019-04-20 10:31:34 +10:00
Micah Lee
4ea457ffe3 Merge pull request #959 from micahflee/958_verbose
Rename --debug to --verbose
2019-04-19 09:48:39 -07:00
Micah Lee
354abb9667 Change a few more references of debug to verbose 2019-04-19 09:32:11 -07:00
Micah Lee
2627a37015 Merge branch 'develop' into 918_old_linux 2019-04-18 19:57:46 -07:00
Micah Lee
d5c60f8f70 Rename debug to verbose in all relevant places 2019-04-18 19:53:21 -07:00
Miguel Jacq
b4abf0fcd0 include years in the dates from CLI, in case it's a very long timer or perhaps we're crossing into a new year 2019-03-25 15:33:00 +11:00
Miguel Jacq
57952dba8b CLI flags to contain requested hyphens 2019-03-25 15:30:34 +11:00
Miguel Jacq
eb823042bb Standardise all startup_timer, scheduled_start attributes as 'autostart_timer' 2019-03-25 15:28:31 +11:00
Miguel Jacq
a4c8865dcd Standardise all shutdown_timer, shutdown_timeout, timeout attributes as 'autostop_timer' 2019-03-25 15:05:54 +11:00
Miguel Jacq
f6f5ff0b7e Fix conflicts 2019-03-25 13:43:08 +11:00
Miguel Jacq
b353db6997 rename CLI args for autostart/stop timers 2019-03-24 18:19:50 +11:00
Miguel Jacq
2dcda9d473 Don't allow setting an auto-stop timer that is shorter than the auto-start timer 2019-03-24 16:35:53 +11:00
Micah Lee
b62714628d Merge pull request #941 from mig5/configurable_connect_timeout
Allow the bundled Tor connection timeout to be configurable from the CLI
2019-03-22 18:00:05 -07:00
Micah Lee
06731ce56a Merge pull request #935 from mig5/fix_receive_mode_folder_collision
On a folder name collision, make sure we update the self.receive_mode_dir attribute
2019-03-22 17:50:33 -07:00
Miguel Jacq
d7ba11ef0c Don't force connect timeout of 150 when using Bridges if a user-supplied connect timeout has been passed in already 2019-03-12 15:36:49 +11:00
Miguel Jacq
726cb0ad9e Allow the bundled Tor connection timeout to be configurable from the CLI 2019-03-12 15:29:07 +11:00
Miguel Jacq
2666bb2dae Use png rather than svg for warning image. Concatenate flash messages with commas to reduce page height. Allow warning message to be wider 2019-03-11 17:27:17 +11:00