<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Actually this is caused by Drupal's
.htaccess file:<br>
<br>
# Block access to "hidden" directories whose names begin with a
period. This<br>
# includes directories used by version control systems such as
Subversion or<br>
# Git to store control files. Files whose names begin with a
period, as well<br>
# as the control files used by CVS, are protected by the
FilesMatch directive<br>
# above.<br>
#<br>
# NOTE: This only works when mod_rewrite is loaded. Without
mod_rewrite, it is<br>
# not possible to block access to entire directories from
.htaccess, because<br>
# <DirectoryMatch> is not allowed here.<br>
#<br>
# If you do not have mod_rewrite installed, you should remove
these<br>
# directories from your webroot or otherwise protect them from
being<br>
# downloaded.<br>
RewriteRule "(^|/)\." - [F]<br>
<br>
You can remove that rule from .htaccess if you like. I would just
make sure you don't have any hidden directories, like .git. <br>
<br>
<pre class="moz-signature" cols="72">Jamie Holly
<a class="moz-txt-link-freetext" href="http://www.intoxination.net">http://www.intoxination.net</a>
<a class="moz-txt-link-freetext" href="http://www.hollyit.net">http://www.hollyit.net</a></pre>
On 12/12/2012 10:45 PM, Vaibhav Jain wrote:<br>
</div>
<blockquote
cite="mid:CAGNDeNkJZt9=dsC38umeWw9ympFpQGOXdqa-pOe+gmrs7wgjvw@mail.gmail.com"
type="cite">You can check once on the permissions provided in
hook_menu.<br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Dec 13, 2012 at 8:02 AM, Austin
Einter <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:austin.einter@gmail.com" target="_blank">austin.einter@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Dear All<br>
I have an auto complete text field , where user types and if
corresponding entry is present in database, I show it to
user using below code.<br>
<br>
<i><b>$matches = array();
<br>
if ($string)
<br>
{
<br>
$result = db_select('resubmt_skill_ids')
<br>
->fields('skill_ids', array('name', 'id'))
<br>
->condition('name', db_like($string) . '%',
'LIKE')
<br>
->range(0, 10)
<br>
->execute();
<br>
foreach ($result as $skill)
<br>
{
<br>
$matches[$skill->name] =
check_plain($skill->name);
<br>
}
<br>
}
<br>
drupal_json_output($matches);<br>
</b></i><br>
Lets say one user wanted to type <i><b>.net</b></i>, as
soon as user types <i><b>.n</b></i> I get below error.<br>
<br>
<i><b><br>
An AJAX HTTP error occurred.<br>
HTTP Result Code: 403<br>
Debugging information follows.<br>
Path: <a moz-do-not-send="true"
href="http://localhost/example.com/util/known/skillsets"
target="_blank">http://localhost/example.com/util/known/skillsets</a><br>
StatusText: Forbidden<br>
ResponseText: <br>
403 Forbidden<br>
Forbidden<br>
You don't have permission to access
/util/known/skillsets/.n<br>
on this server.<br>
Apache/2.2.14 (Ubuntu) Server at localhost Port 80<br>
</b></i><br>
<br>
Can somebody help me why this error comes and how can I
avoid it.<br>
<br>
Thanks<span class="HOEnZb"><font color="#888888"><br>
Austin<br>
<br>
<br>
<br>
<br>
</font></span><br>
--<br>
[ Drupal support list | <a moz-do-not-send="true"
href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a>
]<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Regards,<br>
Vaibhav Jain<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</body>
</html>