Index: trunk/phase3/includes/HttpFunctions.php |
— | — | @@ -560,9 +560,6 @@ |
561 | 561 | |
562 | 562 | $dc = explode(".", $domain); |
563 | 563 | |
564 | | - // Don't allow cookies for "localhost", "ls" or other dot-less hosts |
565 | | - if( count($dc) < 2 ) return false; |
566 | | - |
567 | 564 | // Only allow full, valid IP addresses |
568 | 565 | if( preg_match( '/^[0-9.]+$/', $domain ) ) { |
569 | 566 | if( count( $dc ) != 4 ) return false; |
— | — | @@ -707,7 +704,6 @@ |
708 | 705 | } elseif ( !Cookie::validateCookieDomain( $attr['domain'], $domain ) ) { |
709 | 706 | return null; |
710 | 707 | } |
711 | | - |
712 | 708 | $this->setCookie( $name, $value, $attr ); |
713 | 709 | } |
714 | 710 | } |