The error appears without being authenticated and with https protocol. To test the behavior, simply click on a link (containing an apostrophe) in a search result.

2010/9/20 Sylvie Greverend <sgreverend@gmail.com>
When did the error happen? I can not find out a case with error before
commit
My page name test is apostrophe ’ eheh
Thanks

On Mon, 2010-09-20 at 07:45 +0000, sdoh@users.sourceforge.net wrote:
> Revision: 29378
>           http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=29378&view=rev
> Author:   sdoh
> Date:     2010-09-20 07:45:55 +0000 (Mon, 20 Sep 2010)
>
> Log Message:
> -----------
> Fix 'page not found' when the title has an apostrophe.
>
> Modified Paths:
> --------------
>     trunk/tiki-setup_base.php
>
> Modified: trunk/tiki-setup_base.php
> ===================================================================
> --- trunk/tiki-setup_base.php 2010-09-20 03:50:14 UTC (rev 29377)
> +++ trunk/tiki-setup_base.php 2010-09-20 07:45:55 UTC (rev 29378)
> @@ -320,6 +320,16 @@
>  if (empty($_SERVER['SERVER_NAME'])) {
>       $_SERVER['SERVER_NAME'] = isset($_SERVER['HTTP_HOST'])?$_SERVER['HTTP_HOST']: '';
>  }
> +
> +/*
> + * Clean variables past in _GET & _POST & _COOKIE
> + */
> +$magic_quotes_gpc = get_magic_quotes_gpc();
> +if ($magic_quotes_gpc) {
> +     remove_gpc($_GET);
> +     remove_gpc($_POST);
> +     remove_gpc($_COOKIE);
> +}
>  // in the case of tikis on same domain we have to distinguish the realm
>  // changed cookie and session variable name by a name made with browsertitle
>  $cookie_site = preg_replace("/[^a-zA-Z0-9]/", "", $prefs['cookie_name']);
> @@ -430,7 +440,6 @@
>  }
>  require_once ('lib/setup/perms.php');
>  // --------------------------------------------------------------
> -$magic_quotes_gpc = get_magic_quotes_gpc();
>  // deal with register_globals
>  if (ini_get('register_globals')) {
>       foreach(array($_ENV, $_GET, $_POST, $_COOKIE, $_SERVER) as $superglob) {
> @@ -448,11 +457,6 @@
>  }
>  $jitServer = new JitFilter($_SERVER);
>  $_SERVER = $serverFilter->filter($_SERVER);
> -if ($magic_quotes_gpc) {
> -     remove_gpc($_GET);
> -     remove_gpc($_POST);
> -     remove_gpc($_COOKIE);
> -}
>  // Rebuild request after gpc fix
>  // _REQUEST should only contain GET and POST in the app
>  $_REQUEST = array_merge($_GET, $_POST);
>
>
> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Tikiwiki-cvs mailing list
> Tikiwiki-cvs@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs



------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Tikiwiki-cvs mailing list
Tikiwiki-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs