PHP Classes

URL_FIlter_Simple Class based on domain and path

Recommend this page to a friend!

      Secure URL 2.0  >  All threads  >  URL_FIlter_Simple Class based on...  >  (Un) Subscribe thread alerts  
Subject:URL_FIlter_Simple Class based on...
Summary:don't work
Messages:2
Author:samurai
Date:2008-11-15 18:31:34
Update:2008-11-16 20:55:52
 

  1. URL_FIlter_Simple Class based on...   Reply   Report abuse  
Picture of samurai samurai - 2008-11-15 18:31:34
URL_FIlter_Simple Class based on domain and path dont'work !

SecureURL::setFilterIncludeOption(false); //exculde all URL
SecureURL::addFilter(new URL_Filter_Simple("yourdomain.com","yourpath")); //add your site to filter list
SecureURL::Initialize(new URL_Encoder_XOR("password"));

Any suggestions ?

Thank you

  2. Re: URL_FIlter_Simple Class based on...   Reply   Report abuse  
Picture of samurai samurai - 2008-11-16 20:55:52 - In reply to message 1 from samurai
works fine, but the link must include the SERVER NAME (sorry !!)

To works also correctly with escaped URL links I have chance the line 753 of the file secureURL.php from

return $matches[1] . "=\"" . $url . "\"";

to

return $matches[1] . "=\'" . $url . "\'";