]> git.mxchange.org Git - mailer.git/commitdiff
Empty UA strings are better browsers
authorRoland Häder <roland@mxchange.org>
Sun, 28 Oct 2012 08:13:56 +0000 (08:13 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 28 Oct 2012 08:13:56 +0000 (08:13 +0000)
inc/functions.php
templates/de/html/admin/admin_validate_reset_hash_form.tpl

index 0f372b79a7843578bebc7b0afb51fddc8c1d72fc..a860162bd5389cab6aba31487b5e66ce6b4455e7 100644 (file)
@@ -1957,10 +1957,10 @@ function isSpider () {
        // Get the UA and trim it down
        $userAgent = trim(detectUserAgent(TRUE));
 
-       // It should not be empty, if so it is better a spider/bot
+       // It should not be empty, if so it is better a browser
        if (empty($userAgent)) {
-               // It is a spider/bot
-               return TRUE;
+               // It is a browser that blocks its UA string
+               return FALSE;
        } // END - if
 
        // Is it a spider?
index 46cb1368b9f6432b3efb3bb390f99171f314fc58..a41c9e1482e8a97b9fed2b3e9c0375dbf3c5044c 100644 (file)
@@ -1,11 +1,12 @@
 <div align="center">
-<form accept-charset="UTF-8" action="{%url=modules.php?module=admin&amp;reset_pass=1%}" method="post">
+<form accept-charset="UTF-8" action="{%url=modules.php?module=admin&amp;reset_pass=1&amp;hash=$content%}" method="post">
 <table border="0" cellspacing="0" cellpadding="0" class="table dashed">
 <tr>
        <td class="table_header bottom" colspan="2">
                <strong>{--ADMIN_VALIDATE_HASH_TITLE--}</strong>
        </td>
 </tr>
+
 <tr>
        <td class="bottom">
                {--ADMIN_ENTER_LOGIN--}
@@ -14,9 +15,9 @@
                <input type="text" class="form_field" name="login" size="20" maxlength="255" />
        </td>
 </tr>
+
 <tr>
        <td class="table_footer" colspan="2">
-               <input type="hidden" name="hash" value="$content" />
                <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
                <input type="submit" name="validate_hash" class="form_submit" value="{--ADMIN_VALIDATE_HASH_SUBMIT--}" />
        </td>