* (bug 13040) Gender-aware user namespace aliases
[lhc/web/wiklou.git] / includes / WebRequest.php
index 4674712..0928e4d 100644 (file)
@@ -231,6 +231,7 @@ class WebRequest {
                        $data = $this->normalizeUnicode( $data );
                        return $data;
                } else {
+                       taint( $default );
                        return $default;
                }
        }
@@ -251,7 +252,7 @@ class WebRequest {
                        $val = $default;
                }
                if( is_null( $val ) ) {
-                       return null;
+                       return $val;
                } else {
                        return (string)$val;
                }