FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=19991&edit=1

  ID: 19991
  Comment by: admin@angosso.net
  Reported By: admin@angosso.net
  Summary: Duplicate content "canonical"
  Status: Spam
  Type: Bug
  Package: PHP_Debug
  Operating System: exec
  Package Version: 1.0.3
  PHP Version: 5.3.26
  Roadmap Versions:
  New Comment:

No Spam

function isPathAllowed($file) {

     global $view_source_options, $pathPattern;
     $allowed = false;

     $file = get_magic_quotes_gpc() ? stripslashes($file) : $file;

     foreach ($view_source_options['ALLOWED_PATH'] as $path) {
         $pattern = str_replace(
             '{$path}',
             regPath(preg_quote($path)),
             $pathPattern
         );
         if (preg_match($pattern, $file)) {
             $allowed = true;
         }
     }
     return $allowed;
}

// Add your ip restriction here
function isIpAllowed() {
  return true;
}

// Transform path for regex
function regPath($path) {
  return str_replace(
         array(
             '/',
             '-',
         ),
         array(
             '\/',
             '\-',
         ),
         $path
     );
}


Previous Comments:
------------------------------------------------------------------------

[2013-06-29 08:01:45] doconnor

-Status: Open
+Status: Spam


------------------------------------------------------------------------

[2013-06-24 21:15:21] mbi

Description:
------------
architecture (arborescence) du site
configuration du serveur

Test script:
---------------
link rel= canocical

Expected result:
----------------
<link
rel="shortcuticon"href="http://svn.angosso.net/angosso.net/favicon.ico"
/>
<link rel="canonical" href="//angosso.net/archive/2013.php" />
<script
type="text/javascript"src="http://svn.angosso.net/www.angosso.net/userprefs.js">
</script>
<base href="http://www.angosso.net/archive/2013.php" />


Actual result:
--------------
no php coolapplication.phar

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJul 2, '13 at 7:45a
activeJul 2, '13 at 7:45a
posts1
users1
websitepear.php.net

1 user in discussion

Admin: 1 post

People

Translate

site design / logo © 2022 Grokbase