1193 Commits (3380c946e12e53368f28a2b7285c7bad0c1746dc)

Author SHA1 Message Date
Unknwon e84ac64964 Do not show filename not have suffifx .md 8 years ago
Unknwon 6f7276278d #3174 genetate bindata 8 years ago
Andrey Nering 743d22669a Re-work MAX_DIFF_LINES: supress diff per file, not the whole diff (#3174) 8 years ago
Cosmin Stroe 84841c8c4b Stricter parsing of issue URLs and commit URLs. (#3121) 8 years ago
Unknwon 274a2ca528 Update locale bindata 8 years ago
Sandro Santilli 8a248696e9 Use a gopher as default avatar (rather than the gravatar logo) (#3208)
Also changes the avatar from a jpeg to a png, to allow for
transparent background. The indexed png is also smaller in size.

Note that at the moment the default avatar is only used when
the user requested a custom avatar and the custom avatar file
is not found (should never happen).

In the future the default avatar could be used as a default
return when by-mail avatar lookups fail too (both gravatar
and libravatar support passing a default)
8 years ago
Franz Schmidt 8b35c194ec Fixes #3110 (#3136) 8 years ago
Unknwon 4bbb878d20 Minor fix for #3194
- Update locale bindata
8 years ago
Unknwon 26342b0c24 Update locale 8 years ago
Paul Tötterman fb970b9d87 Add ServerName to tls.Config in LDAP auth (#3104)
From https://godoc.org/crypto/tls#Config

    ServerName is used to verify the hostname on the returned
    certificates unless InsecureSkipVerify is given. It is also included
    in the client's handshake to support virtual hosting unless it is
    an IP address.

This is needed for certificate validation without InsecureSkipVerify.
8 years ago
Unknwon 0240f520ab #2954 minor fix for when to set HTML alternative 8 years ago
Unknwon 8df3ba96f3 #2954 use text/plain as default email content format 8 years ago
Sandro Santilli d35a1c30f4 Do not write HTML in text/plain mail part (#2954)
* Do not write HTML in text/plain mail part

Fixes #2928

* Pass text/plain first, text/html second

* Do not send plain/text email if html2text failed (untested)
8 years ago
Unknwon 8a2347592d locale: update Czech 8 years ago
Unknwon f473895c41 bindata: follow up data clean 8 years ago
Unknwon fbf43c31e5 Add Czech support 8 years ago
Kim Carlbäcker 3df8eb60e3 PDF-Previews in file-lists now working (#3000) 8 years ago
Unknwon 7049cb9d97 Add new language support
- Update language choose dropdown to fit more languages
8 years ago
Unknwon 78b8b63774 #2992 set default style name when empty in AfterSet 8 years ago
Cosmin Stroe ba314a7a36 Support alphanumeric issue style (ABC-1234) for external issue tracker (#2992) 8 years ago
Kim Carlbäcker ce36fd7a49 Fixed #2909 (#2979) 8 years ago
Unknwon 3257df0da3 Update locales 8 years ago
Unknwon ac53bb593d #2878 print error of JSON unmarshal and always returns a valid object 8 years ago
Unknwon b1d41cfa60 #1692 add admin APIs to add/remove a user from teams 8 years ago
Nikko Miu 9a43fcb61c Changed EscapePound function with string replace function 8 years ago
Unknwon 5ec8ef0230 Update locales 8 years ago
Unknwon 004fb30ebe Remove code for checking ssh-keygen 8 years ago
Unknwon 3fb4f7f498 Prepare release 8 years ago
Unknwon 9e09e48502 #2850 fix potential SSH commands dislocation
When use builtin SSH server with concurrent operations, there are probabilities
One connection could use the command from another connections.

Fix this by set SSH_ORIGINAL_COMMAND for each command, not set in global scope.
8 years ago
Unknwon c79774e8d4 Update locales 8 years ago
Odin Ugedal 8540043c45 Make separate string variables for space 8 years ago
Odin Ugedal f57adf3637 Fix relative links in markdown files
Replace spaces with "%20" in "urlPrefix", before markdon processing.
The spaces were causing blackfriday (markdown processor) to behave
strange. This fixes #2545.
8 years ago
Unknwon 9976fc6782 Generate bindata for #2823 8 years ago
Unknwon 9bd9ad4205 #1692 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to #809
8 years ago
Unknwon dd6faf7f9b Convert all API handers to use *context.APIContext 8 years ago
Unknwon db4da7beec Add APIContext 8 years ago
Unknwon b4f47a7623 #1891 attempt to fix invalid csrf token 8 years ago
Unknwon af8eccc02e Update glide.lock 8 years ago
Unknwon 820be19cf5 Merge pull request #2796 from saboya/custom_app_data_path
Making AppDataPath customizable.
8 years ago
Alec S ebea20b4e7 remove errant debug statement 8 years ago
Unknwon 73e98c91c3 Update locales 8 years ago
Unknwon 2bf8494332 #13 finish user and repository search
Both are possible on explore and admin panel
8 years ago
Unknwon 514382e2eb Rename module: middleware -> context 8 years ago
Unknwon 5267dce210 Fix ref comment from commit create empty feed 8 years ago
Unknwon eed9966ad6 #2727 fix incompatible SQL in PostgreSQL 8 years ago
Rodrigo Saboya 3cacec9163 Making AppDataPath customizable. 8 years ago
Unknwon 0e9bc2d410 Fix pull request availability check 8 years ago
Unknwon 0ea0c5ec4f Prepare release 8 years ago
Unknwon 58f0c68151 Some minor changes 8 years ago
Unknwon c18f67ac6a Add Finnish support 8 years ago
Unknwon a5b0400be7 #1146 finish new access rights for collaborators 8 years ago
Unknwon 045f14fbd0 #1146 finsih UI work for access mode of collaborators
Collaborators have write access as default, and can be changed via repository
collaboration settings page to change between read, write and admin.
8 years ago
Unknwon 414eb22ef9 #1597 fix activitity feeds for pull requests 8 years ago
Unknwon a2f13eae55 #1157 some avatar setting changes
- Allow to delete current avatar
8 years ago
Unknwon 2a931937a8 Update locales 8 years ago
Unknwon 2d2d85bba4 #1597 support pull requests in same repository 8 years ago
Unknwon 9df6ce48c5 Minor fixes for #2746 8 years ago
Josh Frye 1ca171dbe9 Add ability to delete single wiki pages. 8 years ago
Unknwon f6759a731a #2748 fix redirect loop with auto-signin 8 years ago
Unknwon 260723e2cc Minor fixes for #2745 8 years ago
Josh Frye f3358f5927 Repo setting to delete and disable wiki 8 years ago
Unknwon f946040fa9 #1891 attempt to fix expected invalid CSRF token
- Remove unused config settings `[picture] service`
8 years ago
Unknwon 9e89584cb4 Allow setting git operations timeouts
- Migrate: #2704 #2653
- Clone: #2701
- Mirror, Pull
8 years ago
Unknwon ea80274229 #2700 fix sqlite3 can't create issue with more than one label 8 years ago
Unknwon 8055a0bdac Post work for #2637
Improve test cases, config settings, also show SSH config settings on admin config panel.
8 years ago
Unknwon 83c74878df Merge pull request #2637 from Gibheer/ssh-publickeys
allow native and ssh-keygen public key check
8 years ago
Unknwon 4438b7793b Add new config option for builtin SSH server
Config option [server] SSH_LISTEN_PORT to the port the builtin SSH server will be listen.
It can be different from SSH_PORT which is supposed to be exposed in the clone URL.
This should solve the problem when user runs Gogs inside Docker container
and still want to use builtin SSH server.
8 years ago
Unknwon baaf6046a1 Minor fix for #2660 8 years ago
Josh Frye c27038e392 Test mailer button. Addresses #1531 8 years ago
Unknwon d324500959 Prepare to release 8 years ago
Gibheer e721c5cf86 use StartSSHServer instead of DisableSSH
DisableSSH doesn't check the kind of ssh server to use, so that was
wrong. Use StartSSHServer instead.
8 years ago
Gibheer e3570ae45d seperate ssh constants from schema constants
The contants were placed in the same section as the scheme ones, which
may lead to confusion.
8 years ago
Unknwon 72ce06eab8 #2682 fix missing slash for go-get meta 8 years ago
Unknwon 912f7b51e9 #1821 add actions for close and reopen issues 8 years ago
Unknwon ac78bae7b5 Replace uuid module with original package 8 years ago
Unknwon 926e75d721 #2334 strip whitespace for migrate URL
Also fix a possible race condition while install
8 years ago
Unknwon d5a3021a7d Make markdown as an independent module 8 years ago
Unknwon d8a994ef24 Move cron module to independent package
Make it easier to keep track of upstream changes and bug fixes
8 years ago
Unknwon 7140dbac95 Fix #857 8 years ago
Adam Strzelecki a9981d8099 Update bindata for LDAP changes 8 years ago
Adam Strzelecki 5649556a33 LDAP: Make a bit more detailed log traces
This is useful especially to check whether we fetch right attributes, using
right LDAP search base and in right order.
8 years ago
Adam Strzelecki 834d92a47b LDAP: Fetch attributes in Bind DN context option
This is feature is workaround for #2628 (JumpCloud) and some other services
that allow LDAP search only under BindDN user account, but not allow any LDAP
search query in logged user DN context.

Such approach is an alternative to minimal permissions security pattern for
BindDN user.
8 years ago
Adam Strzelecki e2f95c2845 LDAP: Use single connection in BindDN mode auth
According to RFC 4511 4.2.1. Processing of the Bind Request "Clients may send
multiple Bind requests to change the authentication and/or security
associations or to complete a multi-stage Bind process. Authentication from
earlier binds is subsequently ignored."

Therefore we should not use 2 connections, but single one just sending two bind
requests.
8 years ago
Unknwon 341da3cea7 Fix inappropriate markdown post process end tag check
When <code> is nested inside <pre>, the next end tag token would not able to be the same
as outer-most start tag. So we only check outer-most start and end tag token to be the same.
8 years ago
Unknwon 2408df3f35 Merge pull request #2663 from Download-Fritz/MirrorForks
#2505 Allow to fork and disallow to create PRs for mirrors.
8 years ago
Download-Fritz a467184e13 #2505 Allow to fork and disallow to create PRs for mirrors. 8 years ago
Unknwon 736a46dff9 Merge pull request #2659 from joshfng/fix-issue-email-format
Fix issue email formatting. Addresses #2331
8 years ago
Josh Frye 0f1b26ed1e Fix issue email formatting. Addresses #2331 8 years ago
Unknwon 338af89d56 #2650 fix possbility that use email as pusher user name
Remove the possibility of using email as user name when user actually push
through combination of email and password with HTTP.

Also refactor update action function to replcae tons of arguments with
single PushUpdateOptions struct.
And define the user who pushes code as pusher, therefore variable names shouldn't
be confusing any more.
8 years ago
Gibheer 12403bdfb0 allow native and ssh-keygen public key check
This commit adds the possibibility to use either the native golang
libraries or ssh-keygen to check public keys. The check is adjusted
depending on the settings, so that only supported keys are let through.

This commit also brings back the blacklist feature, which was removed in
7ef9a05588. This allows to blacklist
algorythms or keys based on the key length. This works with the native
and the ssh-keygen way.

Because of #2179 it also includes a way to adjust the path to
ssh-keygen and the working directory for ssh-keygen. With this,
sysadmins should be able to adjust the settings in a way, that SELinux
is okay with it. In the worst case, they can switch to the native
implementation and only loose support for ed25519 keys at the moment.
There are some other places which need adjustment to utilize the
parameters and the native implementation, but this sets the ground work.
8 years ago
Unknwon 9cf4fe043b Add env var check for update 8 years ago
Unknwon 632c27802c Minor fix for #2624 9 years ago
Unknwon 58e004f7da Remove cache avatar support and add its tests 9 years ago
Unknwon aa5e837c65 fix #2454 9 years ago
Unknwon de3be370f7 Remove unused tests
Module httplib will be replaced a well done third-party package
soon, so remove its unused tests
9 years ago
Josh Frye 8ab5399e83 Make log path required 9 years ago
Josh Frye 1feecd6beb Add helper text for log path. 9 years ago
Josh Frye a3e8c32a30 Add install option for log path 9 years ago
Unknwon 5258ee3740 Update locales and update sponsor 9 years ago
Unknwon 297e772c20 #2485 fix payloads mixed up for webhook
When repository contains a Slack type hook,
it changes original payload content.

This patch fixes it by using a local object to store
newly created Slack payload instead of assigning
back to the same variable.
9 years ago