Commit Graph

3284 Commits

Author SHA1 Message Date
uu1101
46975cd9f1 Use absolute URIs in Redirect
Although most browsers seem to accept relative redirects, it is not
allowed by HTTP/1.1.

This commit changes relative URIs to absolute ones when redirecting.
2014-02-16 12:45:10 +01:00
uu1101
4376b373d8 Prepend URIPrefix to web interface links
Prefix links in templates with URIPrefix and add the input field to the
Listener editor.

The URIPrefix is provided as a top-level template variable. All URIs
have been changed to have the prefix prepended.
2014-02-16 12:45:10 +01:00
uu1101
d796fc8312 Add prefix on redirects and strip it on requests 2014-02-16 12:45:09 +01:00
uu1101
88c85b0396 Add URIPrefix listener option 2014-02-16 12:45:09 +01:00
uu1101
d3ddb9b69d The Listener of a RealListener is never NULL 2014-02-15 14:57:33 +01:00
uu1101
7a9ce630ef Add CString::StartsWith and CString::EndsWith 2014-02-15 12:41:54 +01:00
Alexey Sokolov
95cfc2228f Merge pull request #479 from TheWug/pullreq
Fixed issues brought up in IRC
2014-01-31 14:34:39 -08:00
Wuggingston Wugsalot
d2cd657cfe Minor cosmetic changes
Refactored difficult-to-grok code involved with displaying alias
Fixed crash on alias error when a user isn't associated with a network
2014-01-31 17:11:22 -05:00
Alexey Sokolov
dbdfa1e612 Merge pull request #466 from dgw/fix-shell-timeout
Remove accidental timeout in shell module
2014-01-27 14:18:04 -08:00
Alexey Sokolov
55c299fec6 Support encodings in *controlpanel 2014-01-27 00:27:07 +00:00
Alexey Sokolov
225b494761 Don't reread list of TZs every time 2014-01-27 00:26:30 +00:00
Alexey Sokolov
05ca849339 Don't ask if user wants to create znc.pem or not
Sure they want!
2014-01-27 00:07:17 +00:00
Alexey Sokolov
60b2f559dc Fix alias mod to compile with old compilers 2014-01-25 17:08:31 +00:00
Alexey Sokolov
17354c527f Add libicu-dev to travis config 2014-01-25 14:02:40 +00:00
Alexey Sokolov
366158d907 Add charset to version info 2014-01-25 13:50:07 +00:00
Alexey Sokolov
cfc1227171 Drop old charset module
It didn't work well with webadmin
2014-01-25 13:50:07 +00:00
Alexey Sokolov
c0a5ecb40b Add support for character encodings
Previous commit added support of it to Csocket.
When encoding is specified, core will convert incoming messages to UTF-8,
and outgoing messages from UTF-8.
When no encoding is specified, it will do nothing to bytes, like before.
This is to be changed somewhere in future, to have UTF-8 on wire by
default too.
When encoding's name starts with *, incoming messages will be treated as
UTF-8, if it is already correct UTF-8. Otherwise, it's converted.

Fix #151
Fix #366
2014-01-25 13:50:07 +00:00
Alexey Sokolov
6012cdee77 Update Csocket to e818c7b0d31b0ed71c74f9d0035b58efd73f3988
This adds support for character encodings, and decreases CPU usage in
some cases
2014-01-25 13:50:07 +00:00
Alexey Sokolov
72d08dcdd6 Merge pull request #472 from galdor/master
Include the command name in ERR_INVALIDCAPCMD messages
2014-01-23 16:21:56 -08:00
Nicolas Martyanoff
f215ec602f Include the command name in ERR_INVALIDCAPCMD messages
As described in the IRCv3 Client Capability Negotiation document
(http://ircv3.org/specification/capability-negotiation-3.1).
2014-01-23 12:44:07 +01:00
Kyle Fuller
5950b1d68b Merge pull request #468 from marsjaninzmarsa/patch-1
Disable autocomplete password on add_edit_user.tmpl
2014-01-23 00:53:08 -08:00
Kuba Niewiarowski
1587103d36 Disable autocomplete password on add_edit_user.tpml
Autocomplete should be desabled because in default web browsers fill this resoulting "Invalid user settings" message when for example user changes skin.
2014-01-23 01:58:45 +01:00
Uli Schlachter
c5f31f0a4d autogen.sh: Check for pkg-config before calling automake
Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-01-22 20:58:52 +01:00
dgw
38fc398c2a Remove accidental timeout in shell module 2014-01-21 00:26:01 +04:00
Alexey Sokolov
72f171dd0d Don't redefine _FORTIFY_SOURCE if compiler already defines it 2014-01-19 10:13:30 +00:00
Wuggingston Wugsalot
18a02abfd3 Added alias module for ZNC-side command interception and processing 2014-01-18 21:38:58 +00:00
Wuggingston Wugsalot
adafe9d197 Added CString::Join and CString::Convert
CString::Join works like python's string join, except that it takes 2
iterators (or pointers) instead of a whole collection
CString::Convert casts a string to another type using an intermediary
stringstream.
2014-01-18 21:37:59 +00:00
Alexey Sokolov
be6094a464 Merge commit 'refs/pull/445/head' of github.com:znc/znc 2014-01-18 17:27:07 +00:00
Alexey Sokolov
f456b274b5 Warn users about port 6667 in --makeconf
This should decrease chance of web browsers failing to connect to ZNC
2014-01-18 12:28:38 +00:00
Andrew Northall
0f8441fdff Channel name cannot contain space 2014-01-18 03:24:23 +00:00
Alexey Sokolov
4e2c5e78f0 Merge pull request #449 from dgw/ircline-nickserv
ircline.org nickserv message support
2014-01-17 13:25:46 -08:00
Alexey Sokolov
d05e069bd4 Fix modperl build on MacOS X
.so is not the right extension for shared objects there
2014-01-17 21:09:03 +00:00
Alexey Sokolov
a727ca6a6d Fix ./configure not to fail on non-bash
Thanks to jayne for patch
2014-01-17 21:00:30 +00:00
Alexey Sokolov
14e3bac2c1 Merge pull request #448 from dgw/patch-1
Add identify prompt for StarChat.net
2014-01-17 12:23:16 -08:00
Alexey Sokolov
559abc3d8c Merge pull request #458 from ConorOG/issues_235a
fix #235, erroric console output, status message overwrite
2014-01-16 15:22:33 -08:00
Alexey Sokolov
e0fd211053 Merge pull request #441 from psychon/websocks-expire-oldest
WebModules: Discard sessions in LRU order
2014-01-16 15:21:27 -08:00
Alexey Sokolov
dc9f30d397 Merge pull request #465 from jamesoff/jumpfix
Trim servername in jump command
2014-01-16 15:21:16 -08:00
James Seward
07c1628d50 Trim servername in jump command
Fixes e.g. tab-completing servername in irssi
2014-01-16 20:04:53 +00:00
Kyle Fuller
c99eedaac3 Merge pull request #456 from Un1matr1x/master
Welcome to 2014 - year 10 with ZNC
2014-01-03 02:23:31 -08:00
Conor O'Gorman
dd0ba1def4 define terminal control codes for messages, tidy, tweak ok message 2014-01-01 18:08:31 +00:00
Conor O'Gorman
2d1a632910 fix #235, erroric console output, status message overwrite
using alternative message style
otherwise ncurses/terminal codes for cursor position would seem necessary
2014-01-01 16:10:38 +00:00
Falk Seidel
f19b4caa43 Welcome to 2014 - year 10 with ZNC 2013-12-31 10:10:55 +01:00
dgw
4747c0760a ircline.org nickserv message support
Makes sure ZNC understands when NickServ at ircline.org (N) asks
the user to identify. Addresses #364
2013-12-19 13:57:46 +04:00
dgw
e379a7a81a Add identify prompt for StarChat.net
Apparently StarChat.net uses a very old (?) or obscure NickServ
service that doesn't send any of the more common prompts for ID.
(It also doesn't support nick grouping, more's the pity.)
2013-12-17 16:38:18 -05:00
Andrew Northall
d138cda8f4 Add AddChan/DelChan command to controlpanel module 2013-12-11 01:03:07 +00:00
Uli Schlachter
414fa40eb5 WebModules: Discard sessions in LRU order
Currently, znc has a limit of 5 web sessions per IP address. This limit exists
to defend against some obvious DoS attacks. When this limit is hit, some session
is discarded.

Previously, we would discard the session that std::multimap::find() would give
us. The multimap used mapped from IP addresses to sessions. Thus, we would
discard the oldest session.

This commit changes this into some least-recently-used logic. Whenever a session
is used, we record the timestamp of this. Then when a session has to be picked
for discarding, the one with the oldest timestamp is used.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2013-12-07 20:56:27 +01:00
Alexey Sokolov
9e0597fd07 Merge pull request #432 from dgw/out-of-networks-err-sp
Tweak wording of "out of networks" errors
2013-11-21 09:50:51 -08:00
dgw
2b3d40a501 tweak wording of "out of networks" errors 2013-11-21 13:07:17 +04:00
Alexey Sokolov
5d74720576 Merge pull request #430 from Dessimat0r/webadmin1
Added SSL (+) and port in networks list for connected servers
2013-11-20 20:36:29 -08:00
Chris Dennett
054e873bec Added SSL (+) and port in networks list for connected servers. 2013-11-17 16:34:32 +00:00