Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.3.0] Fix #1284 #1286

Merged
merged 2 commits into from Sep 24, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix #1284
  • Loading branch information
sjinks committed Sep 24, 2013
commit b5e6f80a013039ab59de44f67393e2b39bb02060
2 changes: 1 addition & 1 deletion ext/kernel/framework/url.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void phalcon_get_uri(zval *return_value, zval *path) {

if (Z_STRLEN_P(path) > 0) {
cursor = Z_STRVAL_P(path) + Z_STRLEN_P(path) - 1;
for (i = Z_STRLEN_P(path); i >= 0; i--) {
for (i = Z_STRLEN_P(path); i > 0; i--) {
ch = *cursor;
if (ch == '/' || ch == '\\') {
found++;
Expand Down