From aad85224b5b579a0989dc4fee28c0a3af29ebd20 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 5 Dec 2017 13:53:05 -0300 Subject: [PATCH] fix rewrite for api calls to not redirect --- .htaccess | 4 ++-- api/register.php | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.htaccess b/.htaccess index 242d68a..aee6fde 100644 --- a/.htaccess +++ b/.htaccess @@ -6,5 +6,5 @@ RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.+)$ $1.php [L,QSA] #301 from example.com/page.html to example.com/page -RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*\.php\ HTTP/ -RewriteRule ^(.*)\.php$ /$1 [R=301,L] +#RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*\.php\ HTTP/ +#RewriteRule ^(.*)\.php$ /$1 [R=301,L] diff --git a/api/register.php b/api/register.php index cf157f1..44a4cbd 100644 --- a/api/register.php +++ b/api/register.php @@ -98,9 +98,6 @@ else if(!verifyCaptcha()){ $errors['recaptcha'] = 'Error en la validaciĆ³n de ReCaptcha'; } -/*GUAMBIA ACAAA!!!!*/ -$errors=array(); -/* NO GILEAR!!!!!*/ if ( !empty($errors)) { @@ -132,4 +129,4 @@ else { // return all our data to an AJAX call echo json_encode($data); -?> \ No newline at end of file +?>