Skip to content

Instantly share code, notes, and snippets.

View cYbercOsmOnauT's full-sized avatar

Tekin Birdüzen cYbercOsmOnauT

View GitHub Profile
@cYbercOsmOnauT
cYbercOsmOnauT / core.php
Created June 19, 2015 15:16
The url params are cleaned by the order they are in the request This gets rid of unneeded 301 redirects
public function expected_url($path = '')
{
$path = empty($path) ? $this->phpbb_root_path : $path;
$params = array();
// Check the params by the order they are in the request
foreach($this->request->variable_names(\phpbb\request\request_interface::GET) AS $get) {
$def = $this->seo_opt['zero_dupe']['redir_def'][$get];
if (($this->request->is_set($get, \phpbb\request\request_interface::GET) && $def['keep']) || !empty($def['force']))
{
@cYbercOsmOnauT
cYbercOsmOnauT / keybase.md
Created December 11, 2017 13:35
For Keybase

Keybase proof

I hereby claim:

  • I am cybercosmonaut on github.
  • I am cybercosmonaut (https://keybase.io/cybercosmonaut) on keybase.
  • I have a public key ASDp_TUad4-XV3RLaHe_PPGgv_AJyg1z7VzMw6Fapy2ozwo

To claim this, I am signing this object: