OSDN Git Service
umorigu [Sun, 14 Feb 2016 20:20:02 +0000 (05:20 +0900)]
BugTrack2/362 Escape LDAP search strings to prevent LDAP injection
LDAP escape function 'ldap_escape' is available only on PHP5.6+.
I implemented pkwk_ldap_escape_dn/filter functions for compatibility.
umorigu [Sun, 14 Feb 2016 20:19:02 +0000 (05:19 +0900)]
Fix miss spell, and remove redundant group examples
umorigu [Sun, 14 Feb 2016 20:16:26 +0000 (05:16 +0900)]
BugTrack2/343 Replace 'htmlspecialchars' by 'htmlsc'
umorigu [Sat, 13 Feb 2016 00:45:44 +0000 (09:45 +0900)]
BugTrack2/362 Support ldaps(SSL) - Secure LDAP server connection
umorigu [Fri, 12 Feb 2016 18:50:52 +0000 (03:50 +0900)]
BugTrack2/383 Set Form authentication as default auth method type
umorigu [Fri, 12 Feb 2016 18:40:31 +0000 (03:40 +0900)]
BugTrack2/377 Add 'Template pages' label for template page list
umorigu [Fri, 12 Feb 2016 17:54:38 +0000 (02:54 +0900)]
BugTrack2/361 Apply simple URL for InterWiki link of PukiWiki site
umorigu [Fri, 12 Feb 2016 15:37:16 +0000 (00:37 +0900)]
Update UPDATING documents for Release 1.5.0 and 1.5.1
umorigu [Sun, 7 Feb 2016 18:09:10 +0000 (03:09 +0900)]
Set PukiWiki version to "1.5.1_beta1"
umorigu [Sun, 7 Feb 2016 17:26:50 +0000 (02:26 +0900)]
BugTrack2/374 Fix recording username logic
* Recoard username and fullname for each post
* If fullname is empty, use username as his/her fullname
* Take backup if username differs from previous post
umorigu [Sun, 7 Feb 2016 16:51:18 +0000 (01:51 +0900)]
BugTrack2/374 Get fullname from LDAP server on AUTH_TYPE_EXTERNAL
umorigu [Sun, 7 Feb 2016 13:22:14 +0000 (22:22 +0900)]
BugTrack2/230 Do nothing on updating page with unchanged content
umorigu [Sun, 7 Feb 2016 10:17:52 +0000 (19:17 +0900)]
BugTrack2/381 Handle failure to add comment - comment plugin
umorigu [Sun, 7 Feb 2016 01:04:51 +0000 (10:04 +0900)]
BugTrack2/376 Keep prev spec: return value of AttachFile::getstatus
* Return TRUE if a target file exists
* Return FAlSE if not exists
* Read status file(.log) regardless of active file existance
umorigu [Sat, 6 Feb 2016 16:33:03 +0000 (01:33 +0900)]
Make sure page name is valid for tracker plugin action
umorigu [Fri, 5 Feb 2016 21:36:19 +0000 (06:36 +0900)]
BugTrack2/366 Output 'X-Robots-Tag: nofollow' header on nofollow page
Internet search engines should not index PukiWiki default contents
(i.e. PukiWiki plugin manuals) and non-'read' pluing output (ie: Edit).
So we need to send "nofollow, noindex" marks to search engines.
Previously PukiWiki outputs "robots: nofollow,noindex" meta info
by HTML meta header contained in the default skin file.
Therefore if administrators customize skin file or use other skin,
they failed to tell "nofollow,noindex" to search engines.
In order to resolve this issue, PukiWiki engine now output
HTTP header 'X-Robots-Tag: nofollow,noindex' if the content should
not be cached.
We can tell right index policy to search engine crawlers
regardless of skin file.
umorigu [Fri, 5 Feb 2016 20:30:13 +0000 (05:30 +0900)]
ButTrack2/374 Remove author info on detecting edit collision
umorigu [Fri, 5 Feb 2016 14:00:54 +0000 (23:00 +0900)]
BugTrack2/7 Handle URL with double brackets as a simple URL
umorigu [Thu, 4 Feb 2016 15:43:45 +0000 (00:43 +0900)]
BugTrack2/290 Rename 'http_request' function to 'pkwk_http_request'
pecl_http extension also have the function named 'http_request'.
So, if pecl_http is enable, PukiWiki crashes because of
the name conflict.
I renamed the function to 'pkwk_http_request'.
And I also defined 'http_request' function on the environment
without pecl_http for the backword (mainly your plugin) compatibility.
umorigu [Wed, 3 Feb 2016 18:09:10 +0000 (03:09 +0900)]
BugTrack2/380 Support Mime-type of OpenDocument and Microsoft Office
https://en.wikipedia.org/wiki/OpenDocument
https://technet.microsoft.com/en-us/library/
ee309278(v=office.12).aspx
umorigu [Wed, 3 Feb 2016 17:04:06 +0000 (02:04 +0900)]
BugTrack2/377 Filter template pages for sites that have many pages
* Template list page: ':config/Templates'
* Show the list as template pages
* Anothor rule: Page whose name have 'template' keyward is template
umorigu [Wed, 3 Feb 2016 14:55:39 +0000 (23:55 +0900)]
BugTrack2/374 Remove author info when the page is used as template
umorigu [Wed, 3 Feb 2016 14:33:28 +0000 (23:33 +0900)]
BugTrack2/378 Record delete action history and its user
umorigu [Tue, 2 Feb 2016 17:31:04 +0000 (02:31 +0900)]
BugTrack2/379 Fix Mime-type of svg image; Add svgz type
umorigu [Tue, 2 Feb 2016 17:03:30 +0000 (02:03 +0900)]
Merge branch 'bugtrack2374_record_page_author' into branch_r1_5
* Record '#author' line that shows text modified date and author
* Implement auth username prefix that shows its auth provider
* Default list: 'default:', 'ldap:' and 'external:'
* Recoard Full name of author, it is included on '#author' info
* backup list shows its authors
* Hide author info when user edit wiki text
umorigu [Tue, 2 Feb 2016 16:44:03 +0000 (01:44 +0900)]
BugTrack2/374 Remove author info from user editing text
umorigu [Mon, 1 Feb 2016 16:39:40 +0000 (01:39 +0900)]
BugTrack2/374 Show authors on backup list
umorigu [Mon, 1 Feb 2016 16:15:39 +0000 (01:15 +0900)]
BugTrack2/374 Record fullname of edit user(author)
umorigu [Mon, 1 Feb 2016 16:03:16 +0000 (01:03 +0900)]
BugTrack2/374 Add auth provider user prefix
* AUTH_PROVIDER_USER_PREFIX_DEFAULT(default:)
* for users defined in pukiwiki.ini.php
* AUTH_PROVIDER_USER_PREFIX_LDAP(ldap:)
* for users from LDAP
* AUTH_PROVIDER_USER_PREFIX_EXTERNAL(external:)
* for users provided by external auth systems
umorigu [Mon, 1 Feb 2016 14:14:31 +0000 (23:14 +0900)]
BugTrack2/374 Record timestamp and edit user as author info
author plugin (plugin/author.inc.php) outputs empty string
for HTML text.
umorigu [Wed, 27 Jan 2016 16:03:17 +0000 (01:03 +0900)]
BugTrack2/264 Call getimagesize() only for image named files
umorigu [Tue, 26 Jan 2016 17:12:14 +0000 (02:12 +0900)]
BugTrack2/363 sourceforge.jp to osdn.jp for default contents
umorigu [Tue, 26 Jan 2016 16:56:39 +0000 (01:56 +0900)]
BugTrack2/363 Domain name change: sourceforge.jp to osdn.jp
umorigu [Tue, 26 Jan 2016 16:33:46 +0000 (01:33 +0900)]
Change Attach-file menu label: 'Upload' to 'Attach'
umorigu [Tue, 26 Jan 2016 15:56:40 +0000 (00:56 +0900)]
BugTrack2/345 Rename log and backup files on renaming attached file
umorigu [Tue, 26 Jan 2016 15:05:42 +0000 (00:05 +0900)]
BugTrack2/376 Keep download counts of archived attached files
umorigu [Fri, 22 Jan 2016 16:28:53 +0000 (01:28 +0900)]
BugTrack2/373 AUTH_TYPE_EXTERNAL - Add Log-in and Log-out menu
umorigu [Thu, 21 Jan 2016 19:24:14 +0000 (04:24 +0900)]
BugTrack2/373 AUTH_TYPE_EXTERNAL - Use external sign-in mechanism
In pukiwiki.ini.php, you can define $auth_external_login_url URL.
It is a external sign in URL.
For example,
```
$auth_type = AUTH_TYPE_EXTERNAL;
$auth_external_login_url = './exlogin.php';
```
If you meet a private page that requires access permission,
a system redirect you to './exlogin.php' with 'url_after_login'
parameter.
In this case, 'exlogin.php' is your custom PHP script.
After you sign in your SSO system,
please redirect back to 'url_after_login' page.
umorigu [Thu, 21 Jan 2016 12:58:30 +0000 (21:58 +0900)]
BugTrack2/356 Fix spell miss of COUNTER_DIR
umorigu [Wed, 20 Jan 2016 20:56:45 +0000 (05:56 +0900)]
Merge branch 'ldap' into branch_r1_5
umorigu [Wed, 20 Jan 2016 20:55:03 +0000 (05:55 +0900)]
BugTrack2/375 Use secure session options to prevent session hijacking
umorigu [Fri, 24 Jul 2015 20:13:32 +0000 (05:13 +0900)]
BugTrack2/375 Layout login form with table, and i18n messages
umorigu [Fri, 24 Jul 2015 19:50:06 +0000 (04:50 +0900)]
BugTrack2/362 Implement LDAP account sign in
umorigu [Thu, 16 Jul 2015 18:42:23 +0000 (03:42 +0900)]
BugTrack2/362 Add LDAP settings
umorigu [Sun, 12 Jul 2015 20:17:27 +0000 (05:17 +0900)]
BugTrack2/375 AUTH_TYPE_FORM auth_type - save auth info on session
Implement Log in and Log out for Form auth
umorigu [Sun, 12 Jul 2015 16:55:16 +0000 (01:55 +0900)]
BugTrack2/372 Add auth group - set of multi users on page permission
Reserved 'valid-group' that contains all authenticated users.
Implicit group that has same name as authenticated user name --
for example,
User 'usera' is one and only member of Group 'usera'.
umorigu [Sun, 12 Jul 2015 15:54:05 +0000 (00:54 +0900)]
BugTrack2/375 Decide to authenticated user only once on the beginning
If username are fixed and he don't have page reading permission,
the message 'Pagename is not readable' will be shown instead of
returning 401 Unauthorized.
umorigu [Sun, 12 Jul 2015 14:43:45 +0000 (23:43 +0900)]
Support simple page name expression with '&'-params as query string
For example, a URL "/?FrontPage&a=b&c=d" is recognized as "FrontPage"
page with a=b and c=d parammeteers.
umorigu [Mon, 6 Jul 2015 18:11:29 +0000 (03:11 +0900)]
Add Basic-Auth logout plugin to log out explicitly
umorigu [Mon, 18 Jan 2016 15:43:04 +0000 (00:43 +0900)]
BugTrack2/364 New development team name: "PukiWiki Development Team"
umorigu [Mon, 18 Jan 2016 04:46:51 +0000 (13:46 +0900)]
BugTrack2/354 Fix: invalid char encoding of attached filename
umorigu [Sun, 17 Jan 2016 16:49:12 +0000 (01:49 +0900)]
BugTrack2/370 Set same pcomment default target page for en/ja
* Default page: Comments/%s
* Compatible default page: コメント/%s
If only compatible page exist, use compatible page as a default comment
target.
umorigu [Sun, 17 Jan 2016 15:26:12 +0000 (00:26 +0900)]
BugTrack2/365 Simplify copyright string on page footer
umorigu [Sun, 17 Jan 2016 13:33:30 +0000 (22:33 +0900)]
BugTrack2/141 Fix: counter plugin fails for yesterday on PHP5.1+
umorigu [Sun, 17 Jan 2016 12:26:07 +0000 (21:26 +0900)]
BugTrack2/120 Fix: new plugin doesn't show "New!" indicator on PHP5+
strtotime function requests specific date time format.
So use ISO 8601 (YYYY-MM-DD) as input string.
http://php.net/manual/en/function.strtotime.php
umorigu [Sun, 10 Jan 2016 16:22:46 +0000 (01:22 +0900)]
Ignore NetBeans project files
umorigu [Fri, 8 Jan 2016 15:30:00 +0000 (00:30 +0900)]
Merge branch 'php7' into branch_r1_5
BugTrack2/369 PHP7 Support
umorigu [Fri, 8 Jan 2016 15:20:02 +0000 (00:20 +0900)]
BugTrack2/369 PHP7: Replace ereg regex functions with preg_xxx
Removed Extensions - ereg
http://php.net/manual/en/migration70.removed-exts-sapis.php
Remove ereg() and ereg_replace()
umorigu [Thu, 7 Jan 2016 18:47:44 +0000 (03:47 +0900)]
BugTrack2/369 Follow PHP7 changes of internal array pointer
Backward incompatible change of PHP7:
foreach no longer changes the internal array pointer
We already don't use current() function for array to calculate prev/next.
http://php.net/manual/en/migration70.incompatible.php#migration70.incompatible.foreach.array-pointer
http://wiki.php.net/rfc/php7_foreach
umorigu [Tue, 5 Jan 2016 19:23:03 +0000 (04:23 +0900)]
BugTrack2/369 PHP7 - Remove /e (PREG_REPLACE_EVAL) in preg_replace
Backward incompatible change of PHP7:
preg_replace() function no longer supports "\e" (PREG_REPLACE_EVAL).
http://php.net/manual/en/migration70.changed-functions.php#migration70.changed-functions.core
Solution:
Simply remove "/e" option of preg_replace() because we doen't use EVAL
behaviors.
umorigu [Tue, 5 Jan 2016 19:18:30 +0000 (04:18 +0900)]
Fix invalid reference operator of array for usort
umorigu [Mon, 4 Jan 2016 03:19:26 +0000 (12:19 +0900)]
BugTrack2/369 Support PHP7 - Remove '& new Class' notation
Backward incompatible change of PHP7:
New objects cannot be assigned by reference
The result of the new statement can no longer be assigned to a variable
http://php.net/manual/en/migration70.incompatible.php#migration70.incompatible.other.new-by-ref
Deprecated code:
```
class C {}
$c =& new C;
```
Solution:
```
class C {}
$c = new C;
```
These code changes will cause PHP4 imconpatibility in some cases.
umorigu [Tue, 24 Mar 2015 17:15:59 +0000 (02:15 +0900)]
BugTrack2/358 Improve note regex for better PHP compatibility
PHP5.3 (and others) sometimes crash with long note body.
So we reduce regex computational complexity by using '(('
Positive assertion and Once-only subpattern '(?='.
umorigu [Mon, 19 Jan 2015 17:24:30 +0000 (02:24 +0900)]
BugTrack2/240 Implement more stable extracting items for tracker
umorigu [Mon, 12 Jan 2015 20:54:10 +0000 (05:54 +0900)]
BugTrack2/361 Simplify URL. Keep slash / and colon : in page name URL
See: RFC 3986 http://www.ietf.org/rfc/rfc3986.txt - Section 3.4 Query
We don't need to percent encode for slash and colon.
umorigu [Sun, 11 Jan 2015 17:56:06 +0000 (02:56 +0900)]
BugTrack/359, BugTrack/360 Fix Tracker list sort
* BugTrack/359 Use 'usort' to sort track items instead of 'array_multisort'
* BugTrack/360 Use natucal sort via 'strnatcmp' function
umorigu [Wed, 3 Dec 2014 18:18:16 +0000 (03:18 +0900)]
Support UTF-8 only functions
The UTF-8 only function lines has '//UTF-8 only' trailing comment.
PukiWiki release deploy script would comment out these lines
for EUC-JP dist packages.
umorigu [Mon, 22 Dec 2014 16:29:59 +0000 (01:29 +0900)]
Remove .cvsignore
umorigu [Mon, 22 Dec 2014 15:55:51 +0000 (00:55 +0900)]
Re-create recent cache file 'cache/recent.dat' if it doesn't exit
* cache/_recent.dat : default recent cache file for distribution
* wiki/_526563656E744368616E676573.txt : default 'RecentChanges' wiki text
* wiki.en/
526563656E744368616E676573.txt : 'RecentChanges' of en
umorigu [Tue, 2 Dec 2014 17:24:21 +0000 (02:24 +0900)]
Convert character code of the source code to UTF-8 from EUC-JP
henoheno [Sat, 18 Apr 2009 00:56:33 +0000 (09:56 +0900)]
BugTrack2/320: Failure with page "0" (reverted before ../init.php r1.81)
henoheno [Sat, 18 Apr 2009 00:42:07 +0000 (09:42 +0900)]
BugTrack2/236: If you compare two numerical strings, they are compared as integers
henoheno [Sun, 11 Nov 2007 12:14:09 +0000 (21:14 +0900)]
BugTrack2/260: grobal $script => $script = get_script_uri()
henoheno [Sat, 3 Nov 2007 15:26:19 +0000 (00:26 +0900)]
BugTrack2/236: Care for readdir() returns FALSE
henoheno [Sat, 3 Nov 2007 15:17:52 +0000 (00:17 +0900)]
BugTrack2/236: Care for readdir() returns FALSE
teanan [Wed, 17 Oct 2007 17:49:29 +0000 (02:49 +0900)]
BugTrack2/158: A wrong comment was deleted.
henoheno [Sun, 7 Oct 2007 13:08:50 +0000 (22:08 +0900)]
BugTrack2/236: Correct maintaince date
henoheno [Sat, 6 Oct 2007 13:20:59 +0000 (22:20 +0900)]
BugTrack2/236: If you compare two numerical strings, they are compared as integers
henoheno [Mon, 10 Sep 2007 14:18:50 +0000 (23:18 +0900)]
BugTrack2/269: YTable(): Cleanup
henoheno [Sun, 2 Sep 2007 14:24:40 +0000 (23:24 +0900)]
Warning: fread() [function.fread]: Length parameter must be greater than 0
henoheno [Sun, 2 Sep 2007 12:35:00 +0000 (21:35 +0900)]
BugTrack2/55: Added two functions.
pkwk_chown(): Try to correct UID of the file
pkwk_touch_file(): touch() with pkwk_chown()
henoheno [Sun, 19 Aug 2007 14:20:58 +0000 (23:20 +0900)]
BugTrack2/236: If you compare two numerical strings, they are compared as integers
henoheno [Sun, 19 Aug 2007 14:10:15 +0000 (23:10 +0900)]
get_source(): Returns FALSE if error occurerd. Cleanup. Remove redundant is_page()
henoheno [Sun, 19 Aug 2007 14:08:47 +0000 (23:08 +0900)]
get_source(): Returns FALSE if error occurerd. Cleanup. Remove redundant is_page()
henoheno [Mon, 30 Jul 2007 14:30:14 +0000 (23:30 +0900)]
BugTrack2/264: Compute MD5 if needed, not everytime! (patched by ioio & ryu1)
henoheno [Sun, 29 Jul 2007 12:18:08 +0000 (21:18 +0900)]
get_source(,,$join=TRUE): Care for 0 byte files
henoheno [Thu, 26 Jul 2007 00:57:00 +0000 (09:57 +0900)]
BugTrack2/262: Convert MenuBar before deciding $pkwk_dtd (patched by Ilfa)
henoheno [Mon, 23 Jul 2007 14:26:06 +0000 (23:26 +0900)]
BugTrack2/262: Convert MenuBar before deciding $pkwk_dtd (patched by Ilfa)
henoheno [Thu, 19 Jul 2007 14:07:31 +0000 (23:07 +0900)]
BugTrack2/192, BugTrack2/229: Comment out: 1.3.x-compat replacement keywords
henoheno [Sun, 24 Jun 2007 13:59:50 +0000 (22:59 +0900)]
BugTrack2/251: Show more decent 'HTML convert time' (base patched by ioio)
henoheno [Sat, 23 Jun 2007 16:19:40 +0000 (01:19 +0900)]
do_update_diff(): Simplify. Beautify XHTML
henoheno [Mon, 18 Jun 2007 14:32:49 +0000 (23:32 +0900)]
BugTrack2/246: do_plugin_init(): KISS. $checked what => init $done
henoheno [Sun, 17 Jun 2007 14:33:44 +0000 (23:33 +0900)]
BugTrack2/246: do_plugin_init(): KISS.
* This API do one thing: "FALSE or not". Forget meanless rule about NULL.
* htmlspecialchars() everywhere.
henoheno [Fri, 15 Jun 2007 13:48:19 +0000 (22:48 +0900)]
* BugTrack2/246: Should use array_key_exists($maybe, $null) here (patched by sonots).
* Please don't memorize the $result itself.
henoheno [Sun, 10 Jun 2007 02:08:40 +0000 (11:08 +0900)]
BugTrack2/192, BugTrack2/229: Comment out: 1.3.x-compat replacement keywords
henoheno [Sun, 20 May 2007 14:14:44 +0000 (23:14 +0900)]
BugTrack2/236: "===" for two numerical strings. Can't rename "1" to "01".
henoheno [Thu, 17 May 2007 13:35:49 +0000 (22:35 +0900)]
BugTrack2/236: All your int are string two num
henoheno [Sat, 12 May 2007 09:17:14 +0000 (18:17 +0900)]
BugTrack2/235: Clear the sort_flag
henoheno [Sat, 12 May 2007 08:37:38 +0000 (17:37 +0900)]
BugTrack2/235: Clear the sort_flag: ksort()
henoheno [Sat, 12 May 2007 08:00:50 +0000 (17:00 +0900)]
BugTrack2/235: Sort as string